This works with any {@link AbstractTestResultAction} implementation. @author Kohsuke Kawaguchi
227228229230231232233
/** * Part of the serialization data attached to {@link MavenBuild}. */ static final class FactoryImpl implements MavenProjectActionBuilder { public Collection<? extends Action> getProjectActions(MavenModule module) { return Collections.singleton(new TestResultProjectAction(module)); }
54555657585960
public Class<SurefireReport> getIndividualActionType() { return SurefireReport.class; } public Action getProjectAction(MavenModuleSet moduleSet) { return new TestResultProjectAction(moduleSet); }
206207208209210211212
return testDataPublishers; } @Override public Collection<Action> getProjectActions(AbstractProject<?, ?> project) { return Collections.<Action>singleton(new TestResultProjectAction(project)); }
31323334353637
public Class<JooTestReport> getIndividualActionType() { return JooTestReport.class; } public Action getProjectAction(MavenModuleSet moduleSet) { return new TestResultProjectAction(moduleSet); }
154155156157158159160
216217218219220221222