/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 …]
|
/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 | 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()
|
D | PrimitiveIteratorTest.java | 98 assertEquals(Arrays.asList(1, 2, 4, 5), recorder); in testIntIterator_forEachRemaining_Consumer() 115 assertEquals(Arrays.asList(1, 2, 4, 5), recorder); in testIntIterator_forEachRemaining_boxedConsumer() 145 assertEquals(Arrays.asList(1L, 2L, 4L, 5L), recorder); in testLongIterator_forEachRemaining_Consumer() 162 assertEquals(Arrays.asList(1L, 2L, 4L, 5L), recorder); in testLongIterator_forEachRemaining_boxedConsumer() 192 assertEquals(Arrays.asList(1.0d, 2.0d, 4.0d, 5.0d), recorder); in testDoubleIterator_forEachRemaining_Consumer() 209 assertEquals(Arrays.asList(1.0d, 2.0d, 4.0d, 5.0d), recorder); in testDoubleIterator_forEachRemaining_boxedConsumer()
|
/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 …]
|
D | ToArrayOpTest.java | 55 assertCountSum(Arrays.asList(countTo(0).stream().toArray()), 0, 0); in testToArray() 56 assertCountSum(Arrays.asList(countTo(10).stream().toArray()), 10, 55); in testToArray() 103 TestData.Factory.ofCollection("", Arrays.asList(1.1, 2.2, 3.4, 4.4)), in testAsArrayWithType() 112 LambdaTestHelpers.permuteStreamFunctions(Arrays.asList( 144 LambdaTestHelpers.permuteStreamFunctions(Arrays.asList( 164 List<T> actual = Arrays.asList(act); in statefulOpResultAsserter() 171 LambdaTestHelpers.assertContentsUnordered(Arrays.asList(act), in statefulOpResultAsserter() 172 Arrays.asList(exp)); in statefulOpResultAsserter() 256 LambdaTestHelpers.permuteStreamFunctions(Arrays.asList( 271 LambdaTestHelpers.permuteStreamFunctions(Arrays.asList( [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 …]
|
D | AbstractQueueTest.java | 149 q.addAll(Arrays.asList(ints)); in testAddAll2() 164 q.addAll(Arrays.asList(ints)); in testAddAll3() 178 q.addAll(Arrays.asList(ints)); in testAddAll4()
|
/libcore/luni/src/test/java/libcore/java/util/beans/ |
D | PropertyChangeSupportTest.java | 42 assertEquals(Arrays.<PropertyChangeEvent>asList(nullToNull), listener.log); in testOldAndNewAreBothNull() 53 assertEquals(Arrays.<PropertyChangeEvent>asList(), listener.log); in testOldAndNewAreTheSame() 93 assertEquals(Arrays.asList(eventA, eventB, eventC), all.log); in testEventsFilteredByProxies() 94 assertEquals(Arrays.asList(eventA), proxiedA.log); in testEventsFilteredByProxies() 95 assertEquals(Arrays.asList(eventA), addA.log); in testEventsFilteredByProxies() 96 assertEquals(Arrays.asList(eventA), addAProxiedB.log); in testEventsFilteredByProxies() 97 assertEquals(Arrays.asList(eventA), proxiedAB.log); in testEventsFilteredByProxies() 98 assertEquals(Arrays.asList(eventA), proxiedAA.log); in testEventsFilteredByProxies() 99 assertEquals(Arrays.asList(eventA), proxiedAAC.log); in testEventsFilteredByProxies() 171 assertEquals(Arrays.asList(eventA, eventA, eventA, eventA, eventB, eventB), log.log); in testAddingOneListenerTwice()
|
/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/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/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/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()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodTypeTest.java | 62 MethodType mt = MethodType.methodType(int.class, Arrays.asList(String.class, long.class)); in test_methodType_basicTestsReturnTypeAndParameterClassList() 68 MethodType.methodType(null, Arrays.asList(String.class)); in test_methodType_basicTestsReturnTypeAndParameterClassList() 80 MethodType.methodType(int.class, Arrays.asList(void.class)); in test_methodType_basicTestsReturnTypeAndParameterClassList() 308 MethodType insert0 = mt.insertParameterTypes(0, Arrays.asList(Integer.class, Long.class)); in testInsertParameterTypes_list() 312 MethodType insert1 = mt.insertParameterTypes(1, Arrays.asList(Integer.class, Long.class)); in testInsertParameterTypes_list() 315 MethodType insert2 = mt.insertParameterTypes(2, Arrays.asList(Integer.class, Long.class)); in testInsertParameterTypes_list() 319 mt.insertParameterTypes(1, Arrays.asList(LARGE_PARAMETER_ARRAY)); in testInsertParameterTypes_list() 325 mt.insertParameterTypes(1, Arrays.asList(void.class)); in testInsertParameterTypes_list() 337 mt.insertParameterTypes(1, Arrays.asList(null)); in testInsertParameterTypes_list() 343 mt.insertParameterTypes(-1, Arrays.asList(String.class)); in testInsertParameterTypes_list() [all …]
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 115 modes.addAll(Arrays.asList(newModes)); in provideCipherModes() 123 paddings.addAll(Arrays.asList(newPaddings)); in provideCipherPaddings() 611 public static final Set<String> KEY_TYPES = new HashSet<>(Arrays.asList( 631 public static final Set<String> CLIENT_AUTH_TYPES = new HashSet<>(Arrays.asList( 643 public static final Set<String> SERVER_AUTH_TYPES = new HashSet<>(Arrays.asList( 667 public static final List<String> CIPHER_SUITES_TLS13 = Arrays.asList( 674 private static final List<String> CIPHER_SUITES_ANDROID_AES_HARDWARE = Arrays.asList( 694 private static final List<String> CIPHER_SUITES_ANDROID_SOFTWARE = Arrays.asList( 715 ? Arrays.asList("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 142 assertTrue("Assert 1: specials sort incorrectly" + Arrays.asList(print1), in test_sort$D() 150 assertTrue("Assert 2: specials sort incorrectly " + Arrays.asList(print2), in test_sort$D() 178 assertTrue("Assert 1: specials sort incorrectly" + Arrays.asList(print1), in test_sort$F() 186 assertTrue("Assert 2: specials sort incorrectly" + Arrays.asList(print2), in test_sort$F() 340 List<String> stringsList = Arrays.asList("0", "1"); in test_asListTvararg() 351 List<String> stooges = Arrays.asList("Larry", "Moe", "Curly"); in test_asListTvararg() 357 stringsList = Arrays.asList((String) null); in test_asListTvararg() 362 Arrays.asList((Object[]) null); in test_asListTvararg() 476 List<Integer> list = Arrays.asList(0, 1, 2); 483 List<Integer> list = Arrays.asList(0, 1, 2); [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 34 import static java.util.Arrays.asList; 204 assertEquals(asList("t", "e", "s", "t"), asList("test".split(""))); in testSplitOnEmptyPattern_apiCurrent() 205 assertEquals(asList(""), asList("".split(""))); in testSplitOnEmptyPattern_apiCurrent() 206 assertEquals(asList(""), asList(Pattern.compile("").split(""))); in testSplitOnEmptyPattern_apiCurrent() 207 assertEquals(asList(""), asList("".split("", -1))); in testSplitOnEmptyPattern_apiCurrent() 212 assertEquals(asList("", "t", "e", "s", "t"), asList("test".split(""))); in testSplitOnEmptyPattern_api28() 213 assertEquals(asList(""), asList("".split(""))); in testSplitOnEmptyPattern_api28() 214 assertEquals(asList(""), asList(Pattern.compile("").split(""))); in testSplitOnEmptyPattern_api28() 215 assertEquals(asList(""), asList("".split("", -1))); in testSplitOnEmptyPattern_api28() 224 assertEquals(asList("", "", "rdv", "rk"), asList("aardvark".split("a"))); in testMatchBeginningOfInputSequence_apiCurrent() [all …]
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | NodeTest.java | 42 for (int size : Arrays.asList(0, 1, 4, 15, 16, 17, 127, 128, 129, 1000)) { in createSizes() 50 nodes.add(Nodes.node(Arrays.asList(array))); in createSizes() 51 nodes.add(degenerateTree(Arrays.asList(array).iterator())); in createSizes() 52 … nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l.toArray(new Integer[l.size()])))); in createSizes() 53 nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l))); in createSizes()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Repository.java | 65 for (String s : Arrays.asList("Char", "Double", "Float", "Int", "Long", "Short")) { in historicRenames() 142 List<String> sourceDirs = Arrays.asList( in openJdk9() 173 sourceDirs.addAll(Arrays.asList( in openJdkLegacy() 184 List<String> pkgPaths = Arrays.asList("", "java/io", "java/lang", "java/net", "java/nio", in openJdkLegacy() 220 /* sourceDirs */ Arrays.asList("ojluni/src/main/java", "ojluni/src/main/native")); in OjluniRepository()
|