Revert changes to baseClassForTests
This commit is contained in:
@@ -7,7 +7,6 @@ import java.io.File;
|
||||
import org.apache.maven.plugin.AbstractMojo;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.maven.plugins.annotations.Parameter;
|
||||
import org.assertj.core.util.Strings;
|
||||
|
||||
import io.codearte.accurest.AccurestException;
|
||||
import io.codearte.accurest.TestGenerator;
|
||||
@@ -44,13 +43,6 @@ public abstract class AbstractGenerateVerificationCodeMojo extends AbstractMojo
|
||||
config.setContractsDslDir(new File(baseDir, contractsDir));
|
||||
config.setBasePackageForTests(basePackageForTests);
|
||||
config.setGeneratedTestSourcesDir(new File(projectBuildDirectory, generatedTestSourcesDir));
|
||||
if (Strings.isNullOrEmpty(baseClassForTests)) {
|
||||
if (!Strings.isNullOrEmpty(basePackageForTests)) {
|
||||
baseClassForTests = basePackageForTests + '.' + "BaseAccurest";
|
||||
} else {
|
||||
baseClassForTests = "io.codearte.accurest.tests.BaseAccurest";
|
||||
}
|
||||
}
|
||||
config.setBaseClassForTests(baseClassForTests);
|
||||
config.setTargetFramework(testFramework);
|
||||
config.setTestMode(testMode);
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -76,6 +75,7 @@
|
||||
</executions>
|
||||
<configuration>
|
||||
<basePackageForTests>hello</basePackageForTests>
|
||||
<baseClassForTests>hello.BaseMockMvcTest</baseClassForTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
@@ -123,17 +123,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spring-releases</id>
|
||||
<url>https://repo.spring.io/libs-release</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>spring-releases</id>
|
||||
<url>https://repo.spring.io/libs-release</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</project>
|
||||
|
||||
@@ -3,7 +3,7 @@ package hello;
|
||||
import com.jayway.restassured.module.mockmvc.RestAssuredMockMvc;
|
||||
import org.junit.Before;
|
||||
|
||||
public class BaseAccurest {
|
||||
public class BaseMockMvcTest {
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
Reference in New Issue
Block a user