use of org.jenkinsci.test.acceptance.po.Node in project acceptance-test-harness by jenkinsci.
the class CheckStylePluginTest method should_group_warnings_by_module.
/**
* Builds a multi-module maven project and checks that warnings are grouped by module.
*/
// TODO: Check module details
@Test
public void should_group_warnings_by_module() {
MavenModuleSet job = createMavenJob(CHECKSTYLE_PLUGIN_ROOT + "maven_multi_module", "clean package checkstyle:checkstyle", CheckStyleMavenSettings.class, new NullConfigurator<>());
Node slave = createSlaveForJob(job);
Build build = buildSuccessfulJobOnSlave(job, slave);
assertThatCheckStyleResultExists(job, build);
build.open();
CheckStyleAction checkstyle = new CheckStyleAction(build);
checkstyle.open();
assertThat(checkstyle.getNumberOfNewWarnings(), is(24));
assertThatModulesTabIsCorrectlyFilled(checkstyle);
}
Aggregations