Home | History | Annotate | Download | only in testers

Lines Matching refs:addAll

34  * A generic JUnit test which tests addAll operations on a collection. Can't be
47 assertFalse("addAll(nothing) should return false",
48 collection.addAll(emptyCollection()));
55 assertFalse("addAll(nothing) should return false or throw",
56 collection.addAll(emptyCollection()));
64 assertTrue("addAll(nonePresent) should return true",
65 collection.addAll(createDisjointCollection()));
72 collection.addAll(createDisjointCollection());
73 fail("addAll(nonePresent) should throw");
83 assertTrue("addAll(somePresent) should return true",
84 collection.addAll(MinimalCollection.of(samples.e3, samples.e0)));
93 collection.addAll(MinimalCollection.of(samples.e3, samples.e0));
94 fail("addAll(somePresent) should throw");
104 assertFalse("addAll(allPresent) should return false or throw",
105 collection.addAll(MinimalCollection.of(samples.e0)));
115 assertTrue("addAll(containsNull) should return true", collection
116 .addAll(containsNull));
129 collection.addAll(containsNull);
130 fail("addAll(containsNull) should throw");
135 "Should not contain null after unsupported addAll(containsNull)");
141 collection.addAll(null);
142 fail("addAll(null) should throw NullPointerException");