431432433434435436437438439440441
final EventList el = EventLists.eventList(); el.addAll(all); final RangedEventList rel = EventLists.rangedEventList(el); assertTrue(rel.containsAll(all)); rel.setStart(1); assertFalse(rel.containsAll(all)); rel.setStart(2);
434435436437438439440441442443444
final RangedEventList rel = EventLists.rangedEventList(el); assertTrue(rel.containsAll(all)); rel.setStart(1); assertFalse(rel.containsAll(all)); rel.setStart(2); assertFalse(rel.containsAll(all)); rel.setStart(200);
437438439440441442443444445446447
rel.setStart(1); assertFalse(rel.containsAll(all)); rel.setStart(2); assertFalse(rel.containsAll(all)); rel.setStart(200); assertFalse(rel.containsAll(all)); rel.setStart(0);
440441442443444445446447448449450
rel.setStart(2); assertFalse(rel.containsAll(all)); rel.setStart(200); assertFalse(rel.containsAll(all)); rel.setStart(0); assertTrue(rel.containsAll(all)); }
443444445446447448449450451452453
rel.setStart(200); assertFalse(rel.containsAll(all)); rel.setStart(0); assertTrue(rel.containsAll(all)); } public void testIndexOf() { final List all = new ArrayList(); all.add("one");