/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class) item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
break; default: pl.removeAll(BuildTrigger.class); Set<AbstractProject> combinedChildren = new HashSet<AbstractProject>(); for (BuildTrigger bt : existingList)
break; default: pl.removeAll(BuildTrigger.class); Set<AbstractProject> combinedChildren = new HashSet<AbstractProject>(); for (BuildTrigger bt : existingList) {
break; default: pl.removeAll(BuildTrigger.class); Set<AbstractProject> combinedChildren = new HashSet<AbstractProject>(); for (BuildTrigger bt : existingList) {
break; default: pl.removeAll(BuildTrigger.class); Set<AbstractProject> combinedChildren = new HashSet<AbstractProject>(); for (BuildTrigger bt : existingList)
private void doRepeatedArchiving(boolean slave) throws Exception { if (slave) { DumbSlave s = j.createOnlineSlave(); project.setAssignedLabel(s.getSelfLabel()); } project.getPublishersList().removeAll(JUnitResultArchiver.class); project.getBuildersList().add(new SimpleArchive("A", 7, 0)); project.getBuildersList().add(new SimpleArchive("B", 0, 1)); FreeStyleBuild build = j.assertBuildStatus(Result.UNSTABLE, project.scheduleBuild2(0).get()); List<TestResultAction> actions = build.getActions(TestResultAction.class); assertEquals(1, actions.size()); TestResultAction testResultAction = actions.get(0); TestResult result = testResultAction.getResult(); assertNotNull("no TestResult", result); assertEquals("should have 1 failing test", 1, testResultAction.getFailCount()); assertEquals("should have 1 failing test", 1, result.getFailCount()); assertEquals("should have 8 total tests", 8, testResultAction.getTotalCount()); assertEquals("should have 8 total tests", 8, result.getTotalCount()); assertEquals(/* ⅞ = 87.5% */87, testResultAction.getBuildHealth().getScore()); } public static final class SimpleArchive extends Builder {