Home | History | Annotate | Download | only in testers

Lines Matching full:retainall

35  * A generic JUnit test which tests {@code retainAll} operations on a
78 * We test that nullSingleton.retainAll(disjointList) does NOT throw a
104 // retainAll(empty)
135 // retainAll(disjoint)
166 // retainAll(superset)
180 // retainAll(subset)
196 // retainAll(sameElements)
210 // retainAll(partialOverlap)
226 // retainAll(containsDuplicates)
242 // retainAll(nullSingleton)
274 // nullSingleton.retainAll()
284 // retainAll(null)
287 * AbstractCollection fails the retainAll(null) test when the subject
288 * collection is empty, but we'd still like to test retainAll(null) when we
297 collection.retainAll(null);
307 collection.retainAll(null);
308 fail("retainAll(null) should throw NullPointerException");
315 = Platform.format("retainAll(%s) should return true", target);
316 assertTrue(message, collection.retainAll(target.toRetain));
321 = Platform.format("retainAll(%s) should return false", target);
322 assertFalse(message, collection.retainAll(target.toRetain));
327 collection.retainAll(target.toRetain);
328 String message = Platform.format("retainAll(%s) should throw", target);
336 = Platform.format("retainAll(%s) should return false or throw", target);
338 assertFalse(message, collection.retainAll(target.toRetain));