@Test public void acceptsOneCorrectly() { CountChangeSetFilter filter = new CountChangeSetFilter(1); assertTrue(filter.accepts(new ChangeSet("a1","b1",false, false, "c1", null, null))); assertFalse(filter.accepts(new ChangeSet("a2","b2",false, false, "c2", null, null))); }
public boolean accepts(ChangeSet changeSet) { changeSetsSeen++; return changeSetsSeen <= changeSetsToAllow; }
CountChangeSetFilter implements ChangeSetFilter { public boolean accepts(ChangeSet changeSet) { changeSetsSeen++; return changeSetsSeen <= changeSetsToAllow; } }
CountChangeSetFilter implements ChangeSetFilter { public boolean accepts(ChangeSet changeSet) { changeSetsSeen++; return changeSetsSeen <= changeSetsToAllow; } CountChangeSetFilter(int changeSetsToAllow); }
CountChangeSetFilter implements ChangeSetFilter { public boolean accepts(ChangeSet changeSet) { changeSetsSeen++; return changeSetsSeen <= changeSetsToAllow; } CountChangeSetFilter(int changeSetsToAllow); boolean accepts(ChangeSet changeSet); }
CountChangeSetFilter implements ChangeSetFilter { public boolean accepts(ChangeSet changeSet) { changeSetsSeen++; return changeSetsSeen <= changeSetsToAllow; } CountChangeSetFilter(int changeSetsToAllow); boolean accepts(ChangeSet changeSet);  }