/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ForEachRemainingTester.java | 50 public static <T> void test_forEachRemaining_list(List<T> collection, T[] initialData) argument 52 test_forEachRemaining(collection, initialData); 55 ListIterator<T> lit = collection.listIterator(1); 66 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) argument 68 collection.addAll(Arrays.asList(initialData)); 71 collection.iterator().forEachRemaining((T i) -> recorder.add(i)); 72 // Note that the collection may not override equals and hashCode. 73 assertEquals(new ArrayList<T>(collection), recorder); 76 Iterator<T> it = collection.iterator(); 88 public static <T> void test_forEachRemaining_NPE(Collection<T> collection, argument 97 test_forEachRemaining_CME(Collection<T> collection, T[] initialData) argument 107 test_forEachRemaining_NPE_list(Collection<T> collection, T[] initialData) argument 116 test_forEachRemaining_CME_list(Collection<T> collection, T[] initialData) argument [all...] |
H A D | SpliteratorsTest.java | 445 Collection<String> collection = Arrays.asList(array); 447 Spliterator<String> sp = Spliterators.spliterator(collection, 0); 451 sp = Spliterators.spliterator(collection, 0); 454 sp = Spliterators.spliterator(collection, 0); 457 sp = Spliterators.spliterator(collection, 0); 460 sp = Spliterators.spliterator(collection, 0); 463 sp = Spliterators.spliterator(collection, 0); 467 sp = Spliterators.spliterator(collection, Spliterator.ORDERED);
|
H A D | OldCollectionsTest.java | 703 private void assertSerialized(Collection<?> collection, String s, final boolean definesEquals) { argument 704 new SerializationTester<Collection<?>>(collection, s) {
|
H A D | CollectionsTest.java | 1215 Collection<V> collection, List<V> elementsInOrder) { 1216 Spliterator<V> spliterator = collection.spliterator(); 1219 SpliteratorTester.runSizedTests(collection, elementsInOrder.size()); 1222 SpliteratorTester.runSubSizedTests(collection, elementsInOrder.size()); 1224 SpliteratorTester.runOrderedTests(collection); 1214 check_orderedCollection( Collection<V> collection, List<V> elementsInOrder) argument
|
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CollectionCertStoreParameters.java | 81 * @param collection a {@code Collection} of 83 * @exception NullPointerException if {@code collection} is 86 public CollectionCertStoreParameters(Collection<?> collection) { argument 87 if (collection == null) 89 coll = collection; 137 sb.append(" collection: " + coll + "\n");
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestInnerClass.java | 61 public void assertSize(String assertID, int expectedSize, NodeList collection) { argument 62 test.assertSize(assertID, expectedSize, collection); 66 NamedNodeMap collection) { 67 test.assertSize(assertID, expectedSize, collection); 71 Collection collection) { 72 test.assertSize(assertID, expectedSize, collection); 177 public int size(Collection collection) { argument 178 return test.size(collection); 181 public int size(NamedNodeMap collection) { argument 182 return test.size(collection); 65 assertSize(String assertID, int expectedSize, NamedNodeMap collection) argument 70 assertSize(String assertID, int expectedSize, Collection collection) argument 185 size(NodeList collection) argument [all...] |
H A D | DOMTestFramework.java | 60 NodeList collection); 66 NamedNodeMap collection); 72 Collection collection); 172 int size(Collection collection); argument 174 int size(NamedNodeMap collection); argument 176 int size(NodeList collection); argument 56 assertSize( DOMTestCase test, String assertID, int expectedSize, NodeList collection) argument 62 assertSize( DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) argument 68 assertSize( DOMTestCase test, String assertID, int expectedSize, Collection collection) argument
|
H A D | DOMTestCase.java | 232 * Asserts that the length of the collection is the expected size. 238 * @param collection 239 * collection 244 NodeList collection) { 245 framework.assertSize(this, assertID, expectedSize, collection); 249 * Asserts that the length of the collection is the expected size. 255 * @param collection 256 * collection 261 NamedNodeMap collection) { 262 framework.assertSize(this, assertID, expectedSize, collection); 241 assertSize( String assertID, int expectedSize, NodeList collection) argument 258 assertSize( String assertID, int expectedSize, NamedNodeMap collection) argument 275 assertSize( String assertID, int expectedSize, Collection collection) argument 957 size(Collection collection) argument 968 size(NamedNodeMap collection) argument 979 size(NodeList collection) argument [all...] |
H A D | JUnitTestCaseAdapter.java | 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { argument 227 assertEquals(assertID,expectedSize, collection.getLength()); 230 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { argument 231 assertEquals(assertID, expectedSize, collection.getLength()); 234 public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection) { argument 235 assertEquals(assertID, expectedSize, collection.size()); 478 public int size(Collection collection) { argument 479 return collection.size(); 482 public int size(NamedNodeMap collection) { argument 483 return collection 486 size(NodeList collection) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | EnumMapTest.java | 1000 Collection collection = enumColorMap.values(); 1003 assertSame("Should be same", collection1, collection); 1005 collection.add(new Integer(1)); 1011 assertTrue("Returned false for contained object", collection 1013 assertTrue("Returned false for contained object", collection 1015 assertFalse("Returned true for uncontained object", collection 1018 assertTrue("Returned false when the object can be removed", collection 1020 assertFalse("Returned true for uncontained object", collection 1023 collection.remove(null)); 1028 assertTrue("Returned false for contained object", collection [all...] |
H A D | ArrayListTest.java | 80 assertTrue("arrayList created from collection has incorrect size", al 84 "arrayList created from collection has incorrect elements", 96 Collection<String> collection = shrinksOnSize("A", "B", "C", "D"); 97 ArrayList<String> list = new ArrayList<String>(collection); 900 ArrayList collection = new ArrayList(); 901 collection.add("1"); 902 collection.add("2"); 903 collection.add("3"); 904 assertEquals(3, collection.size()); 906 list.addAll(0, collection); [all...] |
H A D | EnumSetTest.java | 340 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); 341 collection.add(EnumFoo.a); 342 collection.add(EnumFoo.b); 343 result = set.addAll(collection); 769 assertTrue("Should contain empty collection:", result); 787 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); 788 collection.add(EnumFoo.a); 789 result = set.containsAll(collection); 790 assertTrue("Should contain all elements in collection", result); 849 assertTrue("Should contain empty collection [all...] |
H A D | Collections2Test.java | 498 void testCollectionForEach(Collection<Integer> collection) { argument 500 collection.forEach(k -> output.add(k)); 502 assertEquals(new ArrayList<>(collection), output);
|
H A D | TreeMapTest.java | 687 assertTrue("Returned collection of incorrect size", 703 assertTrue("Returned collection of incorrect size", 727 "Removing from the values collection should remove from the original map", 749 assertTrue("Returned collection of incorrect size", vals.size() == 200); 757 "Removing from the values collection should remove from the original map", 759 assertTrue("Returned collection of incorrect size", vals.size() == 199); 765 assertEquals("Returned collection of incorrect size", vals.size(), 400); 773 "Removing from the values collection should remove from the original map", 775 assertTrue("Returned collection of incorrect size", vals.size() == 399); 781 assertEquals("Returned collection o [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Spliterators.java | 401 * Creates a {@code Spliterator} using the given collection's 407 * the <em>fail-fast</em> properties of the collection's iterator, and 411 * @param c The collection 416 * @throws NullPointerException if the given collection is {@code null} 1694 private final Collection<? extends T> collection; // null OK field in class:Spliterators.IteratorSpliterator 1702 * collection's {@link java.util.Collection#iterator()) for traversal, 1706 * @param c the collection 1710 public IteratorSpliterator(Collection<? extends T> collection, int characteristics) { argument 1711 this.collection = collection; [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | TestData.java | 83 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { argument 84 return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parallelStream,
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | TestData.java | 84 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { argument 85 return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parallelStream,
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 1622 protected Collection<List<?>> collection = null; field in class:X509CertSelectorTest.TestCert 1632 public TestCert(Collection<List<?>> collection) { argument 1633 setCollection(collection); 1685 public void setCollection(Collection<List<?>> collection) { argument 1686 this.collection = collection;
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 734 private void assertContains(Collection<String> collection, String element) { argument 735 for (String c : collection) { 740 fail("No " + element + " in " + collection); 743 private void assertContainsAll(Collection<String> collection, String... toFind) { argument 745 assertContains(collection, s);
|