Home
last modified time | relevance | path

Searched refs:collection (Results 1 – 23 of 23) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DForEachRemainingTester.java42 Collection<T> collection = collectionSupplier.get(); in runTests() local
43 if (collection instanceof List) { in runTests()
44 List<T> asList = (List<T>) collection; in runTests()
51 public static <T> void test_forEachRemaining_list(List<T> collection, T[] initialData) in test_forEachRemaining_list() argument
53 test_forEachRemaining(collection, initialData); in test_forEachRemaining_list()
56 ListIterator<T> lit = collection.listIterator(1); in test_forEachRemaining_list()
67 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) in test_forEachRemaining() argument
69 collection.addAll(Arrays.asList(initialData)); in test_forEachRemaining()
72 collection.iterator().forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining()
74 assertEquals(new ArrayList<T>(collection), recorder); in test_forEachRemaining()
[all …]
DSpliteratorsTest.java445 Collection<String> collection = Arrays.asList(array); in testSpliterator_Collection() local
447 Spliterator<String> sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
451 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
454 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
457 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
460 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
463 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
467 sp = Spliterators.spliterator(collection, Spliterator.ORDERED); in testSpliterator_Collection()
DCollectionsTest.java1190 Collection<V> collection, List<V> elementsInOrder) { in check_orderedCollection() argument
1191 Spliterator<V> spliterator = collection.spliterator(); in check_orderedCollection()
1194 SpliteratorTester.runSizedTests(collection, elementsInOrder.size()); in check_orderedCollection()
1197 SpliteratorTester.runSubSizedTests(collection, elementsInOrder.size()); in check_orderedCollection()
1199 SpliteratorTester.runOrderedTests(collection); in check_orderedCollection()
DOldCollectionsTest.java703 private void assertSerialized(Collection<?> collection, String s, final boolean definesEquals) { in assertSerialized() argument
704 new SerializationTester<Collection<?>>(collection, s) { in assertSerialized() argument
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java61 public void assertSize(String assertID, int expectedSize, NodeList collection) { in assertSize() argument
62 test.assertSize(assertID, expectedSize, collection); in assertSize()
66 NamedNodeMap collection) { in assertSize() argument
67 test.assertSize(assertID, expectedSize, collection); in assertSize()
71 Collection collection) { in assertSize() argument
72 test.assertSize(assertID, expectedSize, collection); in assertSize()
177 public int size(Collection collection) { in size() argument
178 return test.size(collection); in size()
181 public int size(NamedNodeMap collection) { in size() argument
182 return test.size(collection); in size()
[all …]
DDOMTestFramework.java60 NodeList collection); in assertSize() argument
66 NamedNodeMap collection); in assertSize() argument
72 Collection collection); in assertSize() argument
172 int size(Collection collection); in size() argument
174 int size(NamedNodeMap collection); in size() argument
176 int size(NodeList collection); in size() argument
DDOMTestCase.java244 NodeList collection) { in assertSize() argument
245 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
261 NamedNodeMap collection) { in assertSize() argument
262 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
278 Collection collection) { in assertSize() argument
279 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
957 public int size(Collection collection) { in size() argument
958 return framework.size(collection); in size()
968 public int size(NamedNodeMap collection) { in size() argument
969 return framework.size(collection); in size()
[all …]
DJUnitTestCaseAdapter.java226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { in assertSize() argument
227 assertEquals(assertID,expectedSize, collection.getLength()); in assertSize()
230 …lic void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { in assertSize() argument
231 assertEquals(assertID, expectedSize, collection.getLength()); in assertSize()
234 …public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection)… in assertSize() argument
235 assertEquals(assertID, expectedSize, collection.size()); in assertSize()
478 public int size(Collection collection) { in size() argument
479 return collection.size(); in size()
482 public int size(NamedNodeMap collection) { in size() argument
483 return collection.getLength(); in size()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java1000 Collection collection = enumColorMap.values(); in test_values() local
1003 assertSame("Should be same", collection1, collection); in test_values()
1005 collection.add(new Integer(1)); in test_values()
1011 assertTrue("Returned false for contained object", collection in test_values()
1013 assertTrue("Returned false for contained object", collection in test_values()
1015 assertFalse("Returned true for uncontained object", collection in test_values()
1018 assertTrue("Returned false when the object can be removed", collection in test_values()
1020 assertFalse("Returned true for uncontained object", collection in test_values()
1023 collection.remove(null)); in test_values()
1028 assertTrue("Returned false for contained object", collection in test_values()
[all …]
DArrayListTest.java97 Collection<String> collection = shrinksOnSize("A", "B", "C", "D"); in testConstructorWithConcurrentCollection() local
98 ArrayList<String> list = new ArrayList<String>(collection); in testConstructorWithConcurrentCollection()
918 ArrayList collection = new ArrayList(); in test_addAll() local
919 collection.add("1"); in test_addAll()
920 collection.add("2"); in test_addAll()
921 collection.add("3"); in test_addAll()
922 assertEquals(3, collection.size()); in test_addAll()
924 list.addAll(0, collection); in test_addAll()
931 collection.add("4"); in test_addAll()
932 collection.add("5"); in test_addAll()
[all …]
DEnumSetTest.java340 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); in test_addAll_LCollection() local
341 collection.add(EnumFoo.a); in test_addAll_LCollection()
342 collection.add(EnumFoo.b); in test_addAll_LCollection()
343 result = set.addAll(collection); in test_addAll_LCollection()
817 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); in test_containsAll_LCollection() local
818 collection.add(EnumFoo.a); in test_containsAll_LCollection()
819 result = set.containsAll(collection); in test_containsAll_LCollection()
935 Collection collection = new ArrayList(); in test_CopyOf_LCollection() local
937 EnumSet.copyOf(collection); in test_CopyOf_LCollection()
943 collection.add(new Object()); in test_CopyOf_LCollection()
[all …]
DCollections2Test.java498 void testCollectionForEach(Collection<Integer> collection) { in testCollectionForEach() argument
500 collection.forEach(k -> output.add(k)); in testCollectionForEach()
502 assertEquals(new ArrayList<>(collection), output); in testCollectionForEach()
DTreeMapTest.java1276 Collection collection = new LinkedList(); in test_navigableKeySet() local
1277 set.addAll(collection); in test_navigableKeySet()
1279 collection.add(new Object()); in test_navigableKeySet()
1280 set.addAll(collection); in test_navigableKeySet()
1292 collection.add(new Integer(200).toString()); in test_navigableKeySet()
1293 set.retainAll(collection); in test_navigableKeySet()
1295 set.removeAll(collection); in test_navigableKeySet()
/libcore/ojluni/src/main/java/java/security/cert/
DCollectionCertStoreParameters.java86 public CollectionCertStoreParameters(Collection<?> collection) { in CollectionCertStoreParameters() argument
87 if (collection == null) in CollectionCertStoreParameters()
89 coll = collection; in CollectionCertStoreParameters()
/libcore/tools/upstream/src/main/java/libcore/
DLines.java36 public Lines(Collection<String> collection) { in Lines() argument
37 this.delegate = new ArrayList<>(collection); in Lines()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java1694 private final Collection<? extends T> collection; // null OK field in Spliterators.IteratorSpliterator
1710 public IteratorSpliterator(Collection<? extends T> collection, int characteristics) { in IteratorSpliterator() argument
1711 this.collection = collection; in IteratorSpliterator()
1729 this.collection = null; in IteratorSpliterator()
1747 this.collection = null; in IteratorSpliterator()
1771 i = it = collection.iterator(); in trySplit()
1772 s = est = (long) collection.size(); in trySplit()
1798 i = it = collection.iterator(); in forEachRemaining()
1799 est = (long)collection.size(); in forEachRemaining()
1808 it = collection.iterator(); in tryAdvance()
[all …]
/libcore/luni/src/test/resources/
Drecipt.dtd1 <!ELEMENT collection (description,recipe+)> element
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd1 <!ELEMENT collection (description,recipe+)> element
/libcore/tools/docs/crypto/
DREADME40 a collection of HTML tables suitable for copying-and-pasting into the docs
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java83 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument
84 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java84 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument
85 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java1622 protected Collection<List<?>> collection = null; field in X509CertSelectorTest.TestCert
1632 public TestCert(Collection<List<?>> collection) { in TestCert() argument
1633 setCollection(collection); in TestCert()
1685 public void setCollection(Collection<List<?>> collection) { in setCollection() argument
1686 this.collection = collection; in setCollection()
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java734 private void assertContains(Collection<String> collection, String element) { in assertContains() argument
735 for (String c : collection) { in assertContains()
740 fail("No " + element + " in " + collection); in assertContains()
743 private void assertContainsAll(Collection<String> collection, String... toFind) { in assertContainsAll() argument
745 assertContains(collection, s); in assertContainsAll()