Home | History | Annotate | Download | only in testers

Lines Matching refs:collection

32  * A generic JUnit test which tests {@code remove} operations on a collection.
45 int initialSize = collection.size();
47 collection.remove(samples.e0));
48 assertEquals("remove(present) should decrease a collection's size by one.",
49 initialSize - 1, collection.size());
56 collection.remove(samples.e3));
63 collection = getSubjectGenerator().create(createArrayWithNullElement());
65 int initialSize = collection.size();
66 assertTrue("remove(null) should return true", collection.remove(null));
67 assertEquals("remove(present) should decrease a collection's size by one.",
68 initialSize - 1, collection.size());
76 collection.remove(samples.e0);
82 collection.contains(samples.e0));
90 collection.remove(samples.e3));
104 collection.remove(null));
112 assertFalse("remove(null) should return false", collection.remove(null));
119 Iterator<E> iterator = collection.iterator();
127 assertTrue(collection.contains(samples.e0));
133 assertFalse(collection.remove(WrongType.VALUE));