if (this.expectedEvents == null) { this.expectedEvents = new ArrayList(); } this.expectedEvents.add(new ComparableTableModelEvent(e));
return this.events.size();
return this.events;
this.expectedEventCount = n;
this.events.add(e); if (this.expectedEventCount > -1 && this.events.size() > this.expectedEventCount) { Assert.fail("Exceeded the expected event count: " + this.expectedEventCount); }
if (this.expectedEventCount > -1) { Assert.assertEquals("Expected event count", this.expectedEventCount, this.events.size()); } if (this.expectedEvents != null) { Assert.assertEquals("Expected events", this.expectedEvents, this.events); }