Home
last modified time | relevance | path

Searched refs:singletonList (Results 1 – 25 of 47) 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()
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/
DStreamBuilderTest.java67 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/
DTestZoneRules.java139 {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/
DArrayManagement.java96 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/
DArrayManagement.java79 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/
DKeyStoreBuilderParameters.java54 parameters = Collections.singletonList(Objects.requireNonNull(builder)); in KeyStoreBuilderParameters()
/libcore/ojluni/src/test/java/lang/invoke/
DDropArgumentsTest.java119 … 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/
DEnumerationAsIterator.java110 Collections.singletonList("a"),
111 Collections.singletonList("a")),
/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);
/libcore/ojluni/src/test/java/util/Collection/
DHotPotatoes.java89 final List<Integer> oneElementList = Collections.singletonList(one); in testPotato()
DMOAT.java200 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/
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()
DListOfTest.java200 List<T> examples = Collections.singletonList(example); in assertUnmodifiable()
/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/libcore/util/
DCollectionUtilsTest.java86 assertEquals(Collections.singletonList("A"), list); in testRemoveDuplicatesOnSingletonCollection()
/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXRevocationCheckerTest.java95 checker.setOcspExtensions(Collections.singletonList(new Extension() { in test_getOcspExtensions()
/libcore/luni/src/test/java/libcore/dalvik/system/
DDexClassLoaderTest.java373 classLoader.addNativePath(Collections.singletonList(path)); in test_oneDex_addNative_findsLibrary()
/libcore/luni/src/main/java/libcore/content/type/
DMimeMap.java411 return addMimeMapping(mimeSpec, Collections.singletonList(extensionSpec)); in addMimeMapping()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMapTest.java180 assertTrue(m.containsKey(Collections.singletonList(new BI(i)))); in testGenericComparable()
194 m.put(Collections.singletonList(new BI(i)), true); in testGenericComparable2()

12