/libcore/luni/src/test/java/libcore/java/net/ |
D | CookiesMCompatibilityTest.java | 39 Collections.singletonList("a=b; domain=chargepoint.com")); in testCookiesWithoutLeadingPeriod() 56 Collections.singletonList("b=c; domain=.chargepoint.com;")); in testCookiesWithLeadingPeriod() 63 assertEquals(Collections.singletonList("b=c"), cookieList); in testCookiesWithLeadingPeriod()
|
D | CookiesTest.java | 39 Collections.singletonList("foo=bar")); in testCookiesWithLeadingPeriod() 49 assertEquals(Collections.singletonList("foo=bar"), cookieList); in testCookiesWithLeadingPeriod()
|
D | AbstractCookiesTest.java | 409 result.put("Cookie", Collections.singletonList("Bar=bar")); in testHeadersSentToCookieHandler() 410 result.put("Cookie2", Collections.singletonList("Baz=baz")); in testHeadersSentToCookieHandler() 411 result.put("Quux", Collections.singletonList("quux")); in testHeadersSentToCookieHandler() 458 result.put("COOKIE", Collections.singletonList("Bar=bar")); in testCookiesSentIgnoresCase() 459 result.put("cooKIE2", Collections.singletonList("Baz=baz")); in testCookiesSentIgnoresCase() 1503 cookies = Collections.singletonList(cookie); in setNextCookie() 1542 Collections.singletonList("foo=bar")); in testCookieWithNoPeriod() 1552 assertEquals(Collections.singletonList("foo=bar"), cookieList); in testCookieWithNoPeriod()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamBuilderTest.java | 67 expectedResult(Collections.singletonList(1)). in testOfNullableWithNonNull() 89 expectedResult(Collections.singletonList(1)). in testSingleton() 94 expectedResult(Collections.singletonList(1)). in testSingleton() 152 expectedResult(Collections.singletonList(1)). in testIntSingleton() 157 expectedResult(Collections.singletonList(1)). in testIntSingleton() 215 expectedResult(Collections.singletonList(1L)). in testLongSingleton() 220 expectedResult(Collections.singletonList(1L)). in testLongSingleton() 277 expectedResult(Collections.singletonList(1.0)). in testDoubleSingleton() 282 expectedResult(Collections.singletonList(1.0)). in testDoubleSingleton()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestZoneRules.java | 139 {ZoneRules.of(OFF_0, OFF_0, Collections.singletonList(ZOT), EL, EL), false}, in isFixedOffset() 140 {ZoneRules.of(OFF_0, OFF_0, EL, Collections.singletonList(ZOT), EL), false}, in isFixedOffset() 141 {ZoneRules.of(OFF_0, OFF_0, EL, EL, Collections.singletonList(ZOTR)), false}, in isFixedOffset() 199 Collections.singletonList(transition), in test_TransitionLastRuleYear() 200 Collections.singletonList(transition), in test_TransitionLastRuleYear() 201 Collections.singletonList(transitionRule)); in test_TransitionLastRuleYear() 220 Collections.singletonList(trans), in test_EmptyTransitionList()
|
/libcore/ojluni/src/test/java/util/ArrayList/ |
D | ArrayManagement.java | 96 static List<Object> singletonList() { in singletonList() method in ArrayManagement 97 return Collections.singletonList(Boolean.TRUE); in singletonList() 107 case 2: assertTrue(list.addAll(singletonList())); break; in addOneElement() 108 case 3: assertTrue(list.addAll(size, singletonList())); break; in addOneElement()
|
/libcore/ojluni/src/test/java/util/Vector/ |
D | ArrayManagement.java | 79 static List<Object> singletonList() { in singletonList() method in ArrayManagement 80 return Collections.singletonList(Boolean.TRUE); in singletonList() 90 case 2: assertTrue(list.addAll(singletonList())); break; in addOneElement() 91 case 3: assertTrue(list.addAll(size, singletonList())); break; in addOneElement()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | KeyStoreBuilderParameters.java | 54 parameters = Collections.singletonList(Objects.requireNonNull(builder)); in KeyStoreBuilderParameters()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | DropArgumentsTest.java | 119 … MethodHandle handle1 = dropArgumentsToMatch(mh1, 0, Collections.singletonList(int.class), 1); in dropArgumentsToMatchPosSkipRange() 125 … MethodHandle handle2 = dropArgumentsToMatch(mh2, 1, Collections.singletonList(int.class), 0); in dropArgumentsToMatchPosSkipRange()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EnumerationAsIterator.java | 110 Collections.singletonList("a"), 111 Collections.singletonList("a")),
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesTest.java | 61 assertEquals(Collections.singletonList(offset), in test_of_ZoneOffset()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | OCSPRequest.java | 92 this(Collections.singletonList(certId)); in OCSPRequest()
|
D | OCSP.java | 131 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check() 179 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check()
|
D | RevocationChecker.java | 709 response.verify(Collections.singletonList(certId), issuerCert, 722 response = OCSP.check(Collections.singletonList(certId), 826 points = Collections.singletonList(point);
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | HotPotatoes.java | 89 final List<Integer> oneElementList = Collections.singletonList(one); in testPotato()
|
D | MOAT.java | 200 List<Integer> singletonList = singletonList(1); in realMain() local 201 equal(singletonList.size(), 1); in realMain() 202 testCollection(singletonList); in realMain() 203 testImmutableList(singletonList); in realMain() 204 testImmutableList(singletonList.subList(0,1)); in realMain() 205 testImmutableList(singletonList.subList(0,1).subList(0,1)); in realMain() 206 testEmptyList(singletonList.subList(0,0)); in realMain() 207 testEmptyList(singletonList.subList(0,0).subList(0,0)); in realMain() 823 final List<Integer> singleton = Collections.singletonList(e); in testQueueAddRemove() 1045 checkListIndexOf(singletonList(values[0]), index, lastIndex); in testListIndexOf()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleLanguageRangeTest.java | 183 map.put("zh-HK", Collections.singletonList("zh-HK")); in testMapEquivalents_exampleFromDocumentation() 184 map.put("zh-TW", Collections.singletonList("zh-TW")); in testMapEquivalents_exampleFromDocumentation()
|
D | ListOfTest.java | 200 List<T> examples = Collections.singletonList(example); in assertUnmodifiable()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | Collection8Test.java | 60 assertEquals(Collections.singletonList(x), found); in testForEach()
|
D | ConcurrentHashMapTest.java | 155 assertTrue(m.containsKey(Collections.singletonList(new BI(i)))); in testGenericComparable() 169 m.put(Collections.singletonList(new BI(i)), true); in testGenericComparable2()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | CollectionUtilsTest.java | 86 assertEquals(Collections.singletonList("A"), list); in testRemoveDuplicatesOnSingletonCollection()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | PKIXRevocationCheckerTest.java | 95 checker.setOcspExtensions(Collections.singletonList(new Extension() { in test_getOcspExtensions()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | DexClassLoaderTest.java | 373 classLoader.addNativePath(Collections.singletonList(path)); in test_oneDex_addNative_findsLibrary()
|
/libcore/luni/src/main/java/libcore/content/type/ |
D | MimeMap.java | 411 return addMimeMapping(mimeSpec, Collections.singletonList(extensionSpec)); in addMimeMapping()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentHashMapTest.java | 180 assertTrue(m.containsKey(Collections.singletonList(new BI(i)))); in testGenericComparable() 194 m.put(Collections.singletonList(new BI(i)), true); in testGenericComparable2()
|