Home
last modified time | relevance | path

Searched refs:singletonList (Results 1 – 25 of 27) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/net/
DCookiesMCompatibilityTest.java39 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()
DCookiesTest.java39 Collections.singletonList("foo=bar")); in testCookiesWithLeadingPeriod()
49 assertEquals(Collections.singletonList("foo=bar"), cookieList); in testCookiesWithLeadingPeriod()
DAbstractCookiesTest.java409 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()
1496 cookies = Collections.singletonList(cookie); in setNextCookie()
1535 Collections.singletonList("foo=bar")); in testCookieWithNoPeriod()
1545 assertEquals(Collections.singletonList("foo=bar"), cookieList); in testCookieWithNoPeriod()
DFtpURLConnectionTest.java342 return Collections.singletonList(proxy); in select()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamBuilderTest.java82 expectedResult(Collections.singletonList(1)). in testSingleton()
87 expectedResult(Collections.singletonList(1)). in testSingleton()
144 expectedResult(Collections.singletonList(1)). in testIntSingleton()
149 expectedResult(Collections.singletonList(1)). in testIntSingleton()
206 expectedResult(Collections.singletonList(1L)). in testLongSingleton()
211 expectedResult(Collections.singletonList(1L)). in testLongSingleton()
267 expectedResult(Collections.singletonList(1.0)). in testDoubleSingleton()
272 expectedResult(Collections.singletonList(1.0)). in testDoubleSingleton()
/libcore/ojluni/src/main/java/javax/net/ssl/
DKeyStoreBuilderParameters.java54 parameters = Collections.singletonList(Objects.requireNonNull(builder)); in KeyStoreBuilderParameters()
/libcore/luni/src/test/java/libcore/java/time/zone/
DZoneRulesTest.java61 assertEquals(Collections.singletonList(offset), in test_of_ZoneOffset()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPRequest.java92 this(Collections.singletonList(certId)); in OCSPRequest()
DOCSP.java131 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check()
179 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check()
DRevocationChecker.java709 response.verify(Collections.singletonList(certId), issuerCert,
722 response = OCSP.check(Collections.singletonList(certId),
826 points = Collections.singletonList(point);
DURICertStore.java442 return Collections.singletonList(crl); in getMatchingCRLs()
/libcore/luni/src/test/java/libcore/java/util/
DLocaleLanguageRangeTest.java183 map.put("zh-HK", Collections.singletonList("zh-HK")); in testMapEquivalents_exampleFromDocumentation()
184 map.put("zh-TW", Collections.singletonList("zh-TW")); in testMapEquivalents_exampleFromDocumentation()
DCollectionsTest.java283 Spliterator<String> sp = Collections.singletonList("spiff").spliterator(); in testSingletonSpliterator()
1471 Collections.singletonList(1).replaceAll(k -> 2); in test_SingletonList_replaceAll()
1478 Collections.singletonList(1).sort((k1, k2) -> 2); in test_SingletonList_sort()
/libcore/luni/src/test/java/libcore/libcore/util/
DCollectionUtilsTest.java86 assertEquals(Collections.singletonList("A"), list); in testRemoveDuplicatesOnSingletonCollection()
/libcore/jsr166-tests/src/test/java/jsr166/
DCollection8Test.java60 assertEquals(Collections.singletonList(x), found); in testForEach()
DConcurrentHashMapTest.java155 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/java/security/cert/
DPKIXRevocationCheckerTest.java100 checker.setOcspExtensions(Collections.singletonList(new Extension() { in test_getOcspExtensions()
/libcore/luni/src/test/java/libcore/dalvik/system/
DDexClassLoaderTest.java363 classLoader.addNativePath(Collections.singletonList(path)); in test_oneDex_addNative_findsLibrary()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollections2Test.java513 testCollectionForEach(Collections.singletonList(new Integer(0))); in test_Collection_forEach()
DCollectionsTest.java1960 List single = Collections.singletonList(str); in test_singletonListLjava_lang_Object()
1964 assertFalse(Collections.singletonList(null).contains(str)); in test_singletonListLjava_lang_Object()
1965 assertTrue(Collections.singletonList(null).contains(null)); in test_singletonListLjava_lang_Object()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java592 return Collections.singletonList((ZoneOffset) info); in getValidOffsets()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java71 …public static final Function<Integer, Stream<Integer>> mfId = e -> Collections.singletonList(e).st…
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java70 …public static final Function<Integer, Stream<Integer>> mfId = e -> Collections.singletonList(e).st…
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java146 …l public static <T> java.util.List<@libcore.util.NullFromTypeParam T> singletonList(@libcore.util.… in singletonList() method in Collections
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java203 return Collections.<TemporalUnit>singletonList(YEARS); in factory_from_TemporalAmount_Years_tooBig()

12