/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/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/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()
|
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/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/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 …]
|
D | CopyOnWriteArrayListTest.java | 122 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3() 132 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 134 assertTrue(full.addAll(Arrays.asList(three, four, five))); in testAddAll() 145 assertEquals(2, full.addAllAbsent(Arrays.asList(three, four, one))); in testAddAllAbsent() 147 assertEquals(0, full.addAllAbsent(Arrays.asList(three, four, one))); in testAddAllAbsent() 245 assertTrue(full.containsAll(Arrays.asList())); in testContainsAll() 246 assertTrue(full.containsAll(Arrays.asList(one))); in testContainsAll() 247 assertTrue(full.containsAll(Arrays.asList(one, two))); in testContainsAll() 248 assertFalse(full.containsAll(Arrays.asList(one, two, six))); in testContainsAll() 249 assertFalse(full.containsAll(Arrays.asList(six))); in testContainsAll() [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/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/util/concurrent/ |
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/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/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()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | SetFactories.java | 48 return new HashSet<>(Arrays.asList(1, 2, 3)); in genSet() 87 Set<Integer> set = Set.copyOf(Arrays.asList(1, null, 3)); in copyOfRejectsNullElements() 92 Set<Integer> set = Set.copyOf(Arrays.asList(1, 1, 2, 3, 3, 3)); in copyOfAcceptsDuplicates()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
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/tools/upstream/src/main/java/libcore/ |
D | StandardRepositories.java | 57 Arrays.asList(openJdk8u60, openJdk7u40) in StandardRepositories() 89 new HashSet<>(Arrays.asList( 117 new HashSet<>(Arrays.asList( 132 new HashSet<>(Arrays.asList(
|
/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((Class<?>) 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() 622 public static final Set<String> KEY_TYPES = new HashSet<>(Arrays.asList( 642 public static final Set<String> CLIENT_AUTH_TYPES = new HashSet<>(Arrays.asList( 654 public static final Set<String> SERVER_AUTH_TYPES = new HashSet<>(Arrays.asList( 678 public static final List<String> CIPHER_SUITES_TLS13 = Arrays.asList( 685 private static final List<String> CIPHER_SUITES_ANDROID_AES_HARDWARE = Arrays.asList( 705 private static final List<String> CIPHER_SUITES_ANDROID_SOFTWARE = Arrays.asList( 726 ? Arrays.asList("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
|