added rule class param

This commit is contained in:
Mariusz Smykula
2016-04-02 22:29:51 +02:00
parent 2bc9fea276
commit 0045821902

View File

@@ -44,16 +44,20 @@ public class GenerateTestsMojo extends AbstractMojo {
@Parameter(defaultValue = "JUNIT")
private TestFramework testFramework;
@Parameter
private String ruleClassForTests;
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("Generating server tests source code for Accurest contract verification");
AccurestConfigProperties config = new AccurestConfigProperties();
config.setContractsDslDir(new File(baseDir, contractsDir));
config.setBasePackageForTests(basePackageForTests);
config.setGeneratedTestSourcesDir(new File(projectBuildDirectory, generatedTestSourcesDir));
config.setBaseClassForTests(baseClassForTests);
config.setTargetFramework(testFramework);
config.setTestMode(testMode);
config.setBasePackageForTests(basePackageForTests);
config.setBaseClassForTests(baseClassForTests);
config.setRuleClassForTests(ruleClassForTests);
getLog().info(format("Using %s as test source directory", config.getGeneratedTestSourcesDir()));
getLog().info(format("Using %s as base class for test classes", config.getBaseClassForTests()));