ReplayJob extends AbstractJob<ReplayRequest, ReplayJobStatus> implements GroupedJob { @Override public JobGroupPath getGroupPath() { return this.groupPath; } ReplayJob(); @Override String getType(); @Override JobGroupPath getGroupPath(); @Override void initialize(Request request); static final String JOB_TYPE; }
@Test void getGroupPath() throws Exception { InstallRequest installOnTech = new InstallRequest(); installOnTech.addNamespace("wiki:tech"); InstallRequest installOnDesign = new InstallRequest(); installOnDesign.addNamespace("wiki:design"); InstallRequest installGlobally = new InstallRequest(); InstallRequest installOnTechAndDesign = new InstallRequest(); installOnTechAndDesign.addNamespace("wiki:tech"); installOnTechAndDesign.addNamespace("wiki:design"); assertGroupPath(new JobGroupPath("wiki:tech", AbstractExtensionJob.ROOT_GROUP), installOnTech, installOnTech); assertGroupPath(AbstractExtensionJob.ROOT_GROUP, installOnTech, installOnDesign); assertGroupPath(AbstractExtensionJob.ROOT_GROUP, installOnTech, installGlobally); }