/** iterator.remove removes element */ public void testIteratorRemove() { List full = populatedArray(SIZE); Iterator it = full.iterator(); Object first = full.get(0); it.next(); it.remove(); assertFalse(full.contains(first)); }
/** contains is true for added elements */ public void testContains() { List full = populatedArray(3); assertTrue(full.contains(one)); assertFalse(full.contains(five)); }