// Path: src/test/java/com/greensopinion/swagger/jaxrsgen/model/TestResources.java
// public class TestResources {
// 
// 	public static String read(Class<?> clazz, String resource) {
// 		String filename = clazz.getSimpleName() + "_" + resource;
// 		try (InputStream stream = clazz.getResourceAsStream(filename)) {
// 			checkNotNull(stream, "Cannot load resource: %s", filename);
// 			return CharStreams.toString(new InputStreamReader(stream, Charsets.UTF_8));
// 		} catch (IOException e) {
// 			throw new RuntimeException(e);
// 		}
// 	}
// }


import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import java.io.File;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.greensopinion.swagger.jaxrsgen.model.TestResources;
/*******************************************************************************
 * Copyright (c) 2017 Tasktop Technologies.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Tasktop EULA
 * which accompanies this distribution, and is available at
 * http://tasktop.com/legal
 *******************************************************************************/

package com.greensopinion.swagger.jaxrsgen;





public class SwaggerJaxrsGeneratorMojoTest {

	@Rule
	public final TemporaryFolder temporaryFolder = new TemporaryFolder();

	@Test
	public void generate() throws MojoExecutionException, MojoFailureException {
		SwaggerJaxrsGeneratorMojo mojo = new SwaggerJaxrsGeneratorMojo();
		mojo.apiVersion = "1.0.0";
		mojo.outputFolder = temporaryFolder.getRoot();
		mojo.packageNames = ImmutableList.of("com.greensopinion.swagger.jaxrsgen.mock");
// Path: src/test/java/com/greensopinion/swagger/jaxrsgen/model/TestResources.java
// public class TestResources {
// 
// 	public static String read(Class<?> clazz, String resource) {
// 		String filename = clazz.getSimpleName() + "_" + resource;
// 		try (InputStream stream = clazz.getResourceAsStream(filename)) {
// 			checkNotNull(stream, "Cannot load resource: %s", filename);
// 			return CharStreams.toString(new InputStreamReader(stream, Charsets.UTF_8));
// 		} catch (IOException e) {
// 			throw new RuntimeException(e);
// 		}
// 	}
// }


// Path: src/test/java/com/greensopinion/swagger/jaxrsgen/SwaggerJaxrsGeneratorMojoTest.java
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import java.io.File;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.greensopinion.swagger.jaxrsgen.model.TestResources;

/*******************************************************************************
 * Copyright (c) 2017 Tasktop Technologies.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Tasktop EULA
 * which accompanies this distribution, and is available at
 * http://tasktop.com/legal
 *******************************************************************************/

package com.greensopinion.swagger.jaxrsgen;





public class SwaggerJaxrsGeneratorMojoTest {

	@Rule
	public final TemporaryFolder temporaryFolder = new TemporaryFolder();

	@Test
	public void generate() throws MojoExecutionException, MojoFailureException {
		SwaggerJaxrsGeneratorMojo mojo = new SwaggerJaxrsGeneratorMojo();
		mojo.apiVersion = "1.0.0";
		mojo.outputFolder = temporaryFolder.getRoot();
		mojo.packageNames = ImmutableList.of("com.greensopinion.swagger.jaxrsgen.mock");
		mojo.mavenProject = mockMavenProject();