/libcore/luni/src/test/java/libcore/java/net/ |
D | ProxySelectorTest.java | 66 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(ftpUri)); in testNoProxySystemProperty() 67 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpUri)); in testNoProxySystemProperty() 68 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpsUri)); in testNoProxySystemProperty() 69 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); in testNoProxySystemProperty() 70 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)); in testNoProxySystemProperty() 79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testProxyHostOnly() 81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), in testProxyHostOnly() 83 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 443))), in testProxyHostOnly() 85 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)); in testProxyHostOnly() 86 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); in testProxyHostOnly() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | GenericExceptionsTest.java | 32 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfMethodsWithTypeParameters() 33 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithTypeParameters() 38 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfMethodsWithGenericParameters() 39 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithGenericParameters() 44 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfConstructorsWithTypeParameters() 45 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithTypeParameters() 50 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfConstructorsWithGenericParameters() 51 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithGenericParameters() 59 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); in testConstructorThrowingTypeVariable() 67 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); in testMethodThrowingTypeVariable() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 38 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testIteratorAndNonStructuralChanges() 55 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndNonStructuralChanges() 67 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndStructuralChanges() 79 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndSizePreservingStructuralChanges() 82 list.addAll(Arrays.asList("A", "B", "C", "D", "E")); in testSubListAndSizePreservingStructuralChanges() 92 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testRemoveAll() 94 list.removeAll(Arrays.asList()); in testRemoveAll() 95 assertEquals(Arrays.asList("a", "b", "c", "d", "e"), list); in testRemoveAll() 97 list.removeAll(Arrays.asList("e")); in testRemoveAll() 98 assertEquals(Arrays.asList("a", "b", "c", "d"), list); in testRemoveAll() [all …]
|
D | ConcurrentHashMapTest.java | 347 assertTrue(set.containsAll(Arrays.asList())); in testKeySetViewContainsAll() 348 assertTrue(set.containsAll(Arrays.asList("A"))); in testKeySetViewContainsAll() 349 assertTrue(set.containsAll(Arrays.asList("A", "E"))); in testKeySetViewContainsAll() 350 assertTrue(set.containsAll(Arrays.asList("A", "B", "C", "D", "E"))); in testKeySetViewContainsAll() 351 assertFalse(set.containsAll(Arrays.asList("A", "B", "F"))); in testKeySetViewContainsAll() 352 assertFalse(set.containsAll(Arrays.asList("F"))); in testKeySetViewContainsAll() 372 assertTrue(set.removeAll(Arrays.asList("A", "C"))); in testKeySetViewRemoveAll() 374 assertTrue(set.containsAll(Arrays.asList("B", "D", "E"))); in testKeySetViewRemoveAll() 375 assertFalse(set.removeAll(Arrays.asList("A", "C"))); in testKeySetViewRemoveAll() 377 assertTrue(set.containsAll(Arrays.asList("B", "D", "E"))); in testKeySetViewRemoveAll() [all …]
|
/libcore/ojluni/src/test/java/util/List/ |
D | ListFactories.java | 41 import static java.util.Arrays.asList; 78 a(List.of(), asList()) in empty() 84 return asList( in nonempty() 86 asList("a")), in nonempty() 88 asList("a", "b")), in nonempty() 90 asList("a", "b", "c")), in nonempty() 92 asList("a", "b", "c", "d")), in nonempty() 94 asList("a", "b", "c", "d", "e")), in nonempty() 96 asList("a", "b", "c", "d", "e", "f")), in nonempty() 98 asList("a", "b", "c", "d", "e", "f", "g")), in nonempty() [all …]
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArrayObjectMethods.java | 61 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test() 62 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 66 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test() 67 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 71 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test() 72 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 76 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test() 77 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() 81 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test() 82 equal(Arrays.hashCode(a), PrimitiveArrays.asList(a).hashCode()); in test() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleLanguageRangeTest.java | 161 Collections.singletonMap("en-US", Arrays.asList("en-US", "en-AU", "en-UK")))); in testMapEquivalents_emptyList() 165 List<LanguageRange> inputRanges = Collections.unmodifiableList(Arrays.asList( in testMapEquivalents_emptyMap_createsModifiableCopy() 182 map.put("zh", Collections.unmodifiableList(Arrays.asList("zh", "zh-Hans"))); in testMapEquivalents_exampleFromDocumentation() 186 List<LanguageRange> inputPriorityList = Arrays.asList( in testMapEquivalents_exampleFromDocumentation() 193 List<LanguageRange> expectedOutput = Arrays.asList( in testMapEquivalents_exampleFromDocumentation() 221 List<LanguageRange> priorityList = Collections.unmodifiableList(Arrays.asList( in testMapEquivalents_nullMap() 230 List<LanguageRange> expected = Arrays.asList( in testMapEquivalents() 236 map.put("fr", Arrays.asList("de-DE")); in testMapEquivalents() 237 map.put("en", Arrays.asList("en-US", "en-AU")); in testMapEquivalents() 253 map.put("iw", Arrays.asList("de-DE")); in testParse_map_localeEquivalent() [all …]
|
D | ListOfTest.java | 32 import static java.util.Arrays.asList; 76 assertEquals(asList("element", 42), list); in mixedTypes() 86 check_nonEmpty(asList("duplicate", "duplicate"), List.of("duplicate", "duplicate")); in duplicates_allowed() 95 check_nonEmpty(asList("one"), List.of("one")); in nonEmpty() 96 check_nonEmpty(asList("one", "two"), List.of("one", "two")); in nonEmpty() 97 check_nonEmpty(asList("one", "two", "three"), List.of("one", "two", "three")); in nonEmpty() 98 check_nonEmpty(asList("one", "two", "three", "four"), in nonEmpty() 100 check_nonEmpty(asList("one", "two", "three", "four", "five"), in nonEmpty() 102 check_nonEmpty(asList("one", "two", "three", "four", "five", "six"), in nonEmpty() 104 check_nonEmpty(asList("one", "two", "three", "four", "five", "six", "seven"), in nonEmpty() [all …]
|
D | ArrayListTest.java | 33 ArrayList<String> list = new ArrayList<>(Arrays.asList("zero", "one", "two")); in test_sublist_throws() 67 List<String> list = new ArrayList<>(Arrays.asList("zero", "one", "two")); in test_sublist_set() 69 assertEquals(Arrays.asList("zero", "ONE", "two"), list); in test_sublist_set() 72 assertEquals(Arrays.asList("zero", "1", "two"), list); in test_sublist_set()
|
D | ForEachRemainingTester.java | 44 List<T> asList = (List<T>) collection; in runTests() local 45 test_forEachRemaining_list(asList, initialData); in runTests() 46 test_forEachRemaining_NPE_list(asList, initialData); in runTests() 47 test_forEachRemaining_CME_list(asList, initialData); in runTests() 69 collection.addAll(Arrays.asList(initialData)); in test_forEachRemaining()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindFirstOpTest.java | 51 …rciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(pEven).findFirst().get()}).strea… in testFindFirst() 52 …exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.findFirst().get()}).stream(), Arrays… in testFindFirst() 53 …eOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 499).findFirst().get()}).s… in testFindFirst() 54 …eOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 999).findFirst().get()}).s… in testFindFirst() 55 …exerciseOps(countTo(0), s -> Arrays.asList(new Integer[]{s.findFirst().orElse(-1)}).stream(), Arra… in testFindFirst() 56 …s(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 1499).findFirst().orElse(-1)}… in testFindFirst()
|
D | ConcatTest.java | 52 List<Integer> part1 = Arrays.asList(5, 3, 4, 1, 2, 6, 2, 4); 53 List<Integer> part2 = Arrays.asList(8, 8, 6, 6, 9, 7, 10, 9); 54 List<Integer> p1p2 = Arrays.asList(5, 3, 4, 1, 2, 6, 2, 4, 8, 8, 6, 6, 9, 7, 10, 9); 55 List<Integer> p2p1 = Arrays.asList(8, 8, 6, 6, 9, 7, 10, 9, 5, 3, 4, 1, 2, 6, 2, 4); 66 … { "front distinct", distinctP1, part2, Arrays.asList(5, 3, 4, 1, 2, 6, 8, 8, 6, 6, 9, 7, 10, 9) }, 67 … { "back distinct", part1, distinctP2, Arrays.asList(5, 3, 4, 1, 2, 6, 2, 4, 8, 6, 9, 7, 10) }, 68 … { "both distinct", distinctP1, distinctP2, Arrays.asList(5, 3, 4, 1, 2, 6, 8, 6, 9, 7, 10) }, 69 … { "front sorted", sortedP1, part2, Arrays.asList(1, 2, 3, 4, 5, 6, 8, 8, 6, 6, 9, 7, 10, 9) }, 70 … { "back sorted", part1, sortedP2, Arrays.asList(5, 3, 4, 1, 2, 6, 2, 4, 6, 7, 8, 9, 10) }, 71 { "both sorted", sortedP1, sortedP2, Arrays.asList(1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10) }, [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CopyOnWriteArraySetTest.java | 69 CopyOnWriteArraySet a = new CopyOnWriteArraySet(Arrays.asList(ints)); in testConstructor3() 79 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 81 assertFalse(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 91 assertTrue(full.addAll(Arrays.asList(three, four, one))); in testAddAll2() 93 assertFalse(full.addAll(Arrays.asList(three, four, one))); in testAddAll2() 173 CopyOnWriteArraySet empty1 = new CopyOnWriteArraySet(Arrays.asList()); in testEquals() 174 CopyOnWriteArraySet empty2 = new CopyOnWriteArraySet(Arrays.asList()); in testEquals() 190 assertTrue(full.containsAll(Arrays.asList())); in testContainsAll() 191 assertTrue(full.containsAll(Arrays.asList(one))); in testContainsAll() 192 assertTrue(full.containsAll(Arrays.asList(one, two))); in testContainsAll() [all …]
|
D | CopyOnWriteArrayListTest.java | 84 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3() 94 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 96 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 107 assertEquals(2, full.addAllAbsent(Arrays.asList(three, four, one))); in testAddAllAbsent() 109 assertEquals(0, full.addAllAbsent(Arrays.asList(three, four, one))); in testAddAllAbsent() 207 assertTrue(full.containsAll(Arrays.asList())); in testContainsAll() 208 assertTrue(full.containsAll(Arrays.asList(one))); in testContainsAll() 209 assertTrue(full.containsAll(Arrays.asList(one, two))); in testContainsAll() 210 assertFalse(full.containsAll(Arrays.asList(one, two, six))); in testContainsAll() 211 assertFalse(full.containsAll(Arrays.asList(six))); in testContainsAll() [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EnumerationAsIterator.java | 78 return Arrays.asList( 81 Collections.enumeration(new ArrayList<>(Arrays.asList("a")))), 82 Arrays.asList("a")), 85 Collections.unmodifiableList(new ArrayList<>(Arrays.asList("a"))), 86 Arrays.asList("a")), 89 new ArrayList<>(Arrays.asList("a")), 90 Arrays.asList("a")) 96 return Arrays.asList( 114 Arrays.asList("a", "b", "c"), 115 Arrays.asList("a", "b", "c"))
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CopyOnWriteArraySetTest.java | 91 CopyOnWriteArraySet a = new CopyOnWriteArraySet(Arrays.asList(ints)); in testConstructor3() 101 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 103 assertFalse(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 113 assertTrue(full.addAll(Arrays.asList(three, four, one))); in testAddAll2() 115 assertFalse(full.addAll(Arrays.asList(three, four, one))); in testAddAll2() 195 CopyOnWriteArraySet empty1 = new CopyOnWriteArraySet(Arrays.asList()); in testEquals() 196 CopyOnWriteArraySet empty2 = new CopyOnWriteArraySet(Arrays.asList()); in testEquals() 212 assertTrue(full.containsAll(Arrays.asList())); in testContainsAll() 213 assertTrue(full.containsAll(Arrays.asList(one))); in testContainsAll() 214 assertTrue(full.containsAll(Arrays.asList(one, two))); in testContainsAll() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | PermuteArgsTest.java | 63 return Arrays.asList(x, y); in list2I() 66 return Arrays.asList(x, y, z); in list3I() 69 return Arrays.asList(w, x, y, z); in list4I() 72 return Arrays.asList(x, y); in list2J() 75 return Arrays.asList(x, y, z); in list3J() 78 return Arrays.asList(w, x, y, z); in list4J() 81 return Arrays.asList(w, x, y, z); in list2I2J() 84 return Arrays.asList(w, x, y, z); in list2J2I() 87 return Arrays.asList(x, y, z); in listLJJ() 90 return Arrays.asList(x, y, z); in listJLJ() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/content/type/ |
D | MimeMapTest.java | 73 .addMimeMapping("application/msWord", Arrays.asList("Doc")) in caseNormalization_key() 96 .addMimeMapping("application/msWord", Arrays.asList("Doc")) in caseNormalization_value() 108 .addMimeMapping("mime/test", Arrays.asList("test", "tst")) in unmapped() 176 .addMimeMapping("audio/mpeg", Arrays.asList("mp2", "mp3")) in buildUpon() 201 .addMimeMapping("text/plain", Arrays.asList("txt", "text")) in put() 205 .addMimeMapping("text/plain", Arrays.asList("txt", "text")) in put() 266 .addMimeMapping("audio/mpeg", Arrays.asList("mpga", "mpega", "?mp2", "mp3")) in putIfAbsent() 310 .addMimeMapping("text/plain", Arrays.asList("txt", "text")) in extensions() 315 Set<String> extensions = new HashSet<>(Arrays.asList( in extensions() 329 .addMimeMapping("text/plain", Arrays.asList("txt", "text")) in mimeTypes() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | SplitTest.java | 180 assertEquals(Arrays.asList("a", ""), Arrays.asList(p.split("a", -1))); in testSplit2() 181 assertEquals(Arrays.asList(""), Arrays.asList(p.split("", -1))); in testSplit2() 182 assertEquals(Arrays.asList("a", "b", "c", "d", ""), Arrays.asList(p.split("abcd", -1))); in testSplit2() 196 assertEquals(Arrays.asList("a", "\ud869\uded6", "b", ""), Arrays.asList(s)); in testSplitSupplementaryWithEmptyString()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | WatchServiceTest.java | 133 Arrays.asList(new WatchEventResult(ENTRY_CREATE, 1)), true); in test_singleFile() 139 Arrays.asList(new WatchEventResult(ENTRY_MODIFY)), true); in test_singleFile() 157 Arrays.asList(new WatchEventResult(ENTRY_DELETE, 1)), true); in test_singleFile() 182 Arrays.asList(new WatchEventResult(ENTRY_DELETE, 1)), true); in test_EventMask() 208 Arrays.asList(new WatchEventResult(ENTRY_CREATE, 1), in test_singleDirectory() 241 Arrays.asList(new WatchEventResult(ENTRY_CREATE, 1)), false); in test_cancel() 270 Arrays.asList(new WatchEventResult(ENTRY_CREATE, 1), in test_removeTarget() 303 Arrays.asList( in test_multipleKeys() 307 Arrays.asList( in test_multipleKeys() 343 Arrays.asList(new WatchEventResult(ENTRY_CREATE, 1), in test_multipleServices() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | CollectionUtilsTest.java | 41 assertEquals(Arrays.<String>asList("a", "b", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 44 assertEquals(Arrays.<String>asList("a", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 66 assertEquals(Arrays.<String>asList(), toList(strings)); in testDereferenceIterable() 84 List<String> list = Arrays.asList("A"); in testRemoveDuplicatesOnSingletonCollection() 99 assertEquals(Arrays.asList("A", "B", "C"), list); in testRemoveDuplicates()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | SSLConfigurationAsserts.java | 90 assertEquals(Arrays.asList(expected), Arrays.asList(actual)); in assertCipherSuitesEqual() 97 assertEquals(new HashSet<String>(Arrays.asList(expected)), in assertProtocolsEqual() 98 new HashSet<String>(Arrays.asList(actual))); in assertProtocolsEqual()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNarrowMonthNamesAndDayNames.java | 49 private static final List<Month> MONTHVALUES = Arrays.asList(Month.values()); 50 private static final List<DayOfWeek> DAYVALUES = Arrays.asList(DayOfWeek.values()); 51 private static final List<TextStyle> TEXTSTYLELIST = Arrays.asList(TextStyle.NARROW, 53 private static final List<Locale> LOCARR = Arrays.asList(Locale.US,
|
/libcore/luni/src/test/java/libcore/java/util/beans/ |
D | PropertyChangeSupportTest.java | 43 assertEquals(Arrays.<PropertyChangeEvent>asList(nullToNull), listener.log); in testOldAndNewAreBothNull() 54 assertEquals(Arrays.<PropertyChangeEvent>asList(), listener.log); in testOldAndNewAreTheSame() 94 assertEquals(Arrays.asList(eventA, eventB, eventC), all.log); in testEventsFilteredByProxies() 95 assertEquals(Arrays.asList(eventA), proxiedA.log); in testEventsFilteredByProxies() 96 assertEquals(Arrays.asList(eventA), addA.log); in testEventsFilteredByProxies() 97 assertEquals(Arrays.asList(eventA), addAProxiedB.log); in testEventsFilteredByProxies() 98 assertEquals(Arrays.asList(eventA), proxiedAB.log); in testEventsFilteredByProxies() 99 assertEquals(Arrays.asList(eventA), proxiedAA.log); in testEventsFilteredByProxies() 100 assertEquals(Arrays.asList(eventA), proxiedAAC.log); in testEventsFilteredByProxies() 172 assertEquals(Arrays.asList(eventA, eventA, eventA, eventA, eventB, eventB), log.log); in testAddingOneListenerTwice()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 112 Arrays.asList(listOfThreads).contains(initialThread)); in test_enumerateLThreadArray() 121 assertTrue(Arrays.asList(initialThreads).contains(initialThread)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 128 assertTrue(Arrays.asList(initialThreads).contains(initialThread)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 135 initialPlusNew.addAll(Arrays.asList(initialThreads)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 139 assertEquals(initialPlusNew, new HashSet<Thread>(Arrays.asList(afterStartThreads))); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 140 assertTrue(Arrays.asList(afterStartThreads).contains(initialThread)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 150 assertEquals(Arrays.asList(initialThreads), Arrays.asList(afterDeathThreads)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 151 assertTrue(Arrays.asList(afterDeathThreads).contains(initialThread)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 164 assertTrue(Arrays.asList(listOfGroups).contains(childGroup)); in test_enumerateLThreadGroupArray()
|