Lines Matching refs:removeAll

33  * A generic JUnit test which tests {@code removeAll} operations on a
46 assertFalse("removeAll(emptyCollection) should return false",
47 collection.removeAll(MinimalCollection.of()));
53 assertFalse("removeAll(disjointCollection) should return false",
54 collection.removeAll(MinimalCollection.of(samples.e3)));
61 assertTrue("removeAll(intersectingCollection) should return true",
62 collection.removeAll(MinimalCollection.of(samples.e0)));
69 assertTrue("removeAll(intersectingCollection) should return true",
70 collection.removeAll(MinimalCollection.of(samples.e0, samples.e3)));
75 * Trigger the other.size() >= this.size() case in AbstractSet.removeAll().
80 assertTrue("removeAll(largeIntersectingCollection) should return true",
81 collection.removeAll(MinimalCollection.of(
90 assertFalse("removeAll(emptyCollection) should return false or throw "
92 collection.removeAll(MinimalCollection.of()));
101 assertFalse("removeAll(disjointCollection) should return false or throw "
103 collection.removeAll(MinimalCollection.of(samples.e3)));
113 collection.removeAll(MinimalCollection.of(samples.e0));
114 fail("removeAll(intersectingCollection) should throw "
123 * AbstractCollection fails the removeAll(null) test when the subject
124 * collection is empty, but we'd still like to test removeAll(null) when we
133 collection.removeAll(null);
143 collection.removeAll(null);
144 fail("removeAll(null) should throw NullPointerException");
154 assertFalse("removeAll(containsNull) should return false or throw",
155 collection.removeAll(containsNull));
164 assertFalse("removeAll(containsNull) should return false",
165 collection.removeAll(containsNull));
173 assertTrue("removeAll(containsNull) should return true",
174 collection.removeAll(Collections.singleton(null)));
181 assertFalse("removeAll(containsWrongType) should return false or throw",
182 collection.removeAll(MinimalCollection.of(WrongType.VALUE)));