use of org.jenkinsci.test.acceptance.plugins.maven.MavenModuleBuild in project acceptance-test-harness by jenkinsci.
the class ViolationsPluginTest method maven.
@Test
public void maven() {
MavenInstallation.installSomeMaven(jenkins);
MavenModuleSet job = jenkins.jobs.create(MavenModuleSet.class);
job.configure();
job.copyDir(resource("/violations_plugin"));
new Violations(job).config("fxcop").pattern("fxcop/*");
job.save();
job.startBuild().shouldSucceed();
MavenModule module = job.module("gid$example");
MavenModuleBuild moduleBuild = module.getLastBuild();
assertThat(module.action(ViolationsAction.class), hasViolations("fxcop", "2", "2"));
assertThat(moduleBuild.action(ViolationsAction.class), hasViolations("fxcop", "2", "2"));
}
Aggregations