Lines Matching refs:addAll

34  * A generic JUnit test which tests {@code addAll(int, Collection)} operations
47 assertTrue("addAll(n, allPresent) should return true",
48 getList().addAll(0, MinimalCollection.of(samples.e0)));
56 getList().addAll(0, MinimalCollection.of(samples.e0));
57 fail("addAll(n, allPresent) should throw");
66 assertTrue("addAll(n, allPresent) should return true",
67 getList().addAll(0, MinimalCollection.of(samples.e0, samples.e3)));
75 getList().addAll(0, MinimalCollection.of(samples.e0, samples.e3));
76 fail("addAll(n, allPresent) should throw");
85 assertFalse("addAll(n, nothing) should return false",
86 getList().addAll(0, emptyCollection()));
93 assertFalse("addAll(n, nothing) should return false or throw",
94 getList().addAll(0, emptyCollection()));
104 assertTrue("addAll(n, hasDuplicates) should return true",
105 getList().addAll(0, elementsToAdd));
113 assertTrue("addAll(n, containsNull) should return true",
114 getList().addAll(0, containsNull));
127 getList().addAll(0, containsNull);
128 fail("addAll(n, containsNull) should throw");
133 "Should not contain null after unsupported addAll(n, containsNull)");
139 assertTrue("addAll(middle, disjoint) should return true",
140 getList().addAll(getNumElements() / 2, createDisjointCollection()));
147 assertTrue("addAll(end, disjoint) should return true",
148 getList().addAll(getNumElements(), createDisjointCollection()));
155 getList().addAll(0, null);
156 fail("addAll(n, null) should throw");
165 getList().addAll(-1, MinimalCollection.of(samples.e3));
166 fail("addAll(-1, e) should throw");
176 getList().addAll(getNumElements() + 1, MinimalCollection.of(samples.e3));
177 fail("addAll(size + 1, e) should throw");