/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ListResourceBundleTest.java | 40 assertTrue("Missing key parent1", result.contains("parent1")); in test_getKeys() 41 assertTrue("Missing key parent2", result.contains("parent2")); in test_getKeys() 42 assertTrue("Missing key parent3", result.contains("parent3")); in test_getKeys() 43 assertTrue("Missing key parent4", result.contains("parent4")); in test_getKeys() 44 assertTrue("Missing key child1", result.contains("child1")); in test_getKeys() 45 assertTrue("Missing key child2", result.contains("child2")); in test_getKeys() 46 assertTrue("Missing key child3", result.contains("child3")); in test_getKeys() 61 assertTrue(result.contains(null)); in test_handleGetObjectLjava_lang_String() 62 assertTrue(result.contains("frFRVARValue4")); in test_handleGetObjectLjava_lang_String() 63 assertTrue(result.contains("frFRVARChildValue1")); in test_handleGetObjectLjava_lang_String() [all …]
|
D | TreeSetTest.java | 62 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection() 96 anotherTreeSet.contains(objArray[counter])); in test_ConstructorLjava_util_SortedSet() 109 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object() 126 assertTrue("Returned incorrect set", s.contains(i.next())); in test_addAllLjava_util_Collection() 137 assertTrue("Found element in cleared set", !ts.contains(objArray[0])); in test_clear() 149 .contains(i.next())); in test_clone() 169 .contains(objArray[objArray.length / 2])); in test_containsLjava_lang_Object() 171 .contains(new Integer(-9))); in test_containsLjava_lang_Object() 173 ts.contains(new Object()); in test_containsLjava_lang_Object() 200 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_headSetLjava_lang_Object() [all …]
|
D | HashSetTest.java | 88 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection() 111 assertTrue("Failed to add element to set", hs.contains(new Integer(-9))); in test_addLjava_lang_Object() 124 assertTrue("Failed to clear set", !hs.contains(i.next())); in test_clear() 142 assertTrue("Returned false for valid object", hs.contains(objArray[90])); in test_containsLjava_lang_Object() 144 .contains(new Object())); in test_containsLjava_lang_Object() 148 assertTrue("Cannot handle null", s.contains(null)); in test_containsLjava_lang_Object() 168 assertTrue("Failed to iterate over all elements", hs.contains(i in test_iterator() 186 assertTrue("Failed to remove element", !hs.contains(new Integer(98))); in test_removeLjava_lang_Object()
|
D | EnumSetTest.java | 182 "enumSet should not contain null value", enumSet.contains(null)); in test_AllOf_LClass() 184 "enumSet should contain EnumFoo.a", enumSet.contains(EnumFoo.a)); in test_AllOf_LClass() 186 "enumSet should contain EnumFoo.b", enumSet.contains(EnumFoo.b)); in test_AllOf_LClass() 199 assertFalse(hugeEnumSet.contains(null)); in test_AllOf_LClass() 200 assertTrue(hugeEnumSet.contains(HugeEnum.a)); in test_AllOf_LClass() 201 assertTrue(hugeEnumSet.contains(HugeEnum.b)); in test_AllOf_LClass() 594 boolean result = hugeSet.contains(HugeEnum.aa); in test_clear() 599 result = hugeSet.contains(HugeEnum.aa); in test_clear() 640 assertTrue(set.contains(EnumWithInnerClass.d)); in test_ComplementOf_LEnumSet() 644 complementOfE.contains(EnumWithInnerClass.a)); in test_ComplementOf_LEnumSet() [all …]
|
D | EnumMapTest.java | 344 .contains(mockEntry)); in test_entrySet() 347 .contains(mockEntry)); in test_entrySet() 349 .contains(Size.Small)); in test_entrySet() 352 .contains(mockEntry)); in test_entrySet() 354 .contains(new Integer(1))); in test_entrySet() 358 .contains(mockEntry)); in test_entrySet() 362 .contains(mockEntry)); in test_entrySet() 376 .contains(mockEntry)); in test_entrySet() 379 .contains(mockEntry)); in test_entrySet() 450 assertTrue("Returned false for contained object", set.contains(entry)); in test_entrySet() [all …]
|
D | LinkedHashSetTest.java | 98 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection() 121 assertTrue("Failed to add element to set", hs.contains(new Integer(-9))); in test_addLjava_lang_Object() 134 assertTrue("Failed to clear set", !hs.contains(i.next())); in test_clear() 154 assertTrue("Returned false for valid object", hs.contains(objArray[90])); in test_containsLjava_lang_Object() 156 .contains(new Object())); in test_containsLjava_lang_Object() 160 assertTrue("Cannot handle null", s.contains(null)); in test_containsLjava_lang_Object() 186 assertTrue("Cannot find null", hs.contains(oo)); in test_iterator() 205 assertTrue("Failed to remove element", !hs.contains(new Integer(98))); in test_removeLjava_lang_Object() 289 assertTrue(lhs.contains(o[i])); in test_toArray() 310 assertTrue(lhs.contains(o1[i])); in test_toArray$Ljava_lang_Object()
|
D | PropertyResourceBundleTest.java | 116 assertTrue("Returned the wrong keys", test.contains("p1") in test_getKeys() 117 && test.contains("p2")); in test_getKeys() 195 .contains("p1")); in test_access$0_Enumeration() 197 .contains("p2")); in test_access$0_Enumeration() 198 assertTrue("did not get the local property p3", contents.contains("p3")); in test_access$0_Enumeration() 199 assertTrue("did not get the local property p4", contents.contains("p4")); in test_access$0_Enumeration()
|
D | TimeZoneTest.java | 231 assertTrue(ids.toString(), ids.contains("America/Los_Angeles")); in test_getAvailableIDs_I_16947622() 235 assertTrue(ids.toString(), ids.contains("America/Dawson")); in test_getAvailableIDs_I_16947622() 236 assertTrue(ids.toString(), ids.contains("America/Tijuana")); in test_getAvailableIDs_I_16947622() 237 assertTrue(ids.toString(), ids.contains("America/Vancouver")); in test_getAvailableIDs_I_16947622() 238 assertTrue(ids.toString(), ids.contains("Canada/Pacific")); in test_getAvailableIDs_I_16947622() 239 assertTrue(ids.toString(), ids.contains("Canada/Yukon")); in test_getAvailableIDs_I_16947622() 240 assertTrue(ids.toString(), ids.contains("Pacific/Pitcairn")); in test_getAvailableIDs_I_16947622() 248 assertTrue(idList.toString(), idList.contains("Asia/Hong_Kong")); in test_getAvailableIDs_I()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 220 assertTrue(s1.contains("MessageDigest.SHA-256")); in testKeySet() 221 assertTrue(s1.contains("MessageDigest.SHA-1")); in testKeySet() 222 assertTrue(s1.contains("Alg.Alias.MessageDigest.SHA1")); in testKeySet() 223 assertTrue(s1.contains("MessageDigest.abc")); in testKeySet() 224 assertTrue(s1.contains("Provider.id info")); in testKeySet() 225 assertTrue(s1.contains("Provider.id className")); in testKeySet() 226 assertTrue(s1.contains("Provider.id version")); in testKeySet() 227 assertTrue(s1.contains("Provider.id name")); in testKeySet() 247 assertTrue(c1.contains("MyProvider")); in testValues() 248 assertTrue(c1.contains("aaa.bbb.ccc.ddd")); in testValues() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 37 assertTrue(s.contains("Foo")); in testPatternSyntaxException() 38 assertTrue(s.contains("Bar")); in testPatternSyntaxException() 39 assertTrue(s.contains("0")); in testPatternSyntaxException() 48 assertFalse(s.contains("Foo")); in testPatternSyntaxException() 49 assertTrue(s.contains("Bar")); in testPatternSyntaxException() 50 assertTrue(s.contains("0")); in testPatternSyntaxException() 59 assertTrue(s.contains("Foo")); in testPatternSyntaxException() 60 assertFalse(s.contains("Bar")); in testPatternSyntaxException() 61 assertTrue(s.contains("0")); in testPatternSyntaxException() 70 assertFalse(s.contains("Foo")); in testPatternSyntaxException() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_CollectionTest.java | 52 .contains(new Integer(101))); in runTest() 58 .contains(new Integer(101))); in runTest() 80 .contains(new Integer(102))); in runTest() 82 .contains(new Integer(103))); in runTest() 94 .contains(new Integer(0))); in runTest() 96 .contains(new Integer(50))); in runTest() 102 .contains(new Integer(101))); in runTest()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentSkipListSubSetTest.java | 244 assertTrue(q.contains(i)); in testRemoveElement() 246 assertFalse(q.contains(i)); in testRemoveElement() 247 assertTrue(q.contains(i-1)); in testRemoveElement() 250 assertTrue(q.contains(i)); in testRemoveElement() 252 assertFalse(q.contains(i)); in testRemoveElement() 254 assertFalse(q.contains(i+1)); in testRemoveElement() 265 assertTrue(q.contains(new Integer(i))); in testContains() 267 assertFalse(q.contains(new Integer(i))); in testContains() 329 assertFalse(q.contains(I)); in testRemoveAll() 436 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | TreeSubSetTest.java | 236 assertTrue(q.contains(i)); in testRemoveElement() 238 assertFalse(q.contains(i)); in testRemoveElement() 239 assertTrue(q.contains(i-1)); in testRemoveElement() 242 assertTrue(q.contains(i)); in testRemoveElement() 244 assertFalse(q.contains(i)); in testRemoveElement() 246 assertFalse(q.contains(i+1)); in testRemoveElement() 257 assertTrue(q.contains(new Integer(i))); in testContains() 259 assertFalse(q.contains(new Integer(i))); in testContains() 321 assertFalse(q.contains(I)); in testRemoveAll() 428 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | TreeSetTest.java | 286 assertTrue(q.contains(i)); in testRemoveElement() 288 assertFalse(q.contains(i)); in testRemoveElement() 289 assertTrue(q.contains(i-1)); in testRemoveElement() 292 assertTrue(q.contains(i)); in testRemoveElement() 294 assertFalse(q.contains(i)); in testRemoveElement() 296 assertFalse(q.contains(i+1)); in testRemoveElement() 307 assertTrue(q.contains(new Integer(i))); in testContains() 309 assertFalse(q.contains(new Integer(i))); in testContains() 371 assertFalse(q.contains(I)); in testRemoveAll() 478 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | ConcurrentSkipListSetTest.java | 282 assertTrue(q.contains(i)); in testRemoveElement() 284 assertFalse(q.contains(i)); in testRemoveElement() 285 assertTrue(q.contains(i-1)); in testRemoveElement() 288 assertTrue(q.contains(i)); in testRemoveElement() 290 assertFalse(q.contains(i)); in testRemoveElement() 292 assertFalse(q.contains(i+1)); in testRemoveElement() 303 assertTrue(q.contains(new Integer(i))); in testContains() 305 assertFalse(q.contains(new Integer(i))); in testContains() 367 assertFalse(q.contains(I)); in testRemoveAll() 473 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | ConcurrentHashMapTest.java | 167 assertTrue(map.contains("A")); in testContains() 168 assertFalse(map.contains("Z")); in testContains() 246 assertTrue(s.contains(one)); in testKeySet() 247 assertTrue(s.contains(two)); in testKeySet() 248 assertTrue(s.contains(three)); in testKeySet() 249 assertTrue(s.contains(four)); in testKeySet() 250 assertTrue(s.contains(five)); in testKeySet() 275 assertTrue(s.contains("A")); in testValuesToArray() 276 assertTrue(s.contains("B")); in testValuesToArray() 277 assertTrue(s.contains("C")); in testValuesToArray() [all …]
|
D | BlockingQueueTest.java | 333 assertFalse(q.contains(makeElement(99))); 340 assertEquals((pass == 0), q.contains(elts[i])); 342 assertFalse(q.contains(elts[i])); 343 assertTrue(q.contains(elts[i-1])); 345 assertTrue(q.contains(elts[i+1])); 349 assertTrue(q.contains(elts[0])); 351 assertTrue(q.contains(elts[i])); 352 assertFalse(q.contains(elts[i+1])); 354 assertFalse(q.contains(elts[i])); 356 assertFalse(q.contains(elts[i+1]));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 96 assertTrue("a) Should contain entry", valueSet.contains("one")); in test_entrySet() 97 assertTrue("b) Should contain entry", valueSet.contains("two")); in test_entrySet() 98 assertTrue("c) Should contain entry", valueSet.contains("three")); in test_entrySet() 99 assertTrue("d) Should contain entry", valueSet.contains("four")); in test_entrySet() 100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet() 101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet() 102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet() 103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet() 131 assertTrue("a) Should contain entry", s.contains(new Attributes.Name("1"))); in test_keySet() 132 assertTrue("b) Should contain entry", s.contains(new Attributes.Name("2"))); in test_keySet() [all …]
|
/libcore/luni/src/test/java/tests/java/lang/String/ |
D | Tests.java | 26 assertTrue("aabc".contains("abc")); in test_contains() 27 assertTrue("abcd".contains("abc")); in test_contains() 28 assertFalse("abcd".contains("cba")); in test_contains()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CurrencyTest.java | 50 assertTrue(all.toString(), all.contains(Currency.getInstance("CHF"))); in testGetAvailableCurrencies() 51 assertTrue(all.toString(), all.contains(Currency.getInstance("EUR"))); in testGetAvailableCurrencies() 52 assertTrue(all.toString(), all.contains(Currency.getInstance("GBP"))); in testGetAvailableCurrencies() 53 assertTrue(all.toString(), all.contains(Currency.getInstance("JPY"))); in testGetAvailableCurrencies() 54 assertTrue(all.toString(), all.contains(Currency.getInstance("USD"))); in testGetAvailableCurrencies()
|
D | LocaleInternalsTest.java | 71 assertTrue(attributes.contains("foooo")); in test_parseUnicodeExtension() 78 assertTrue(attributes.contains("foooo")); in test_parseUnicodeExtension() 79 assertTrue(attributes.contains("baa")); in test_parseUnicodeExtension() 80 assertTrue(attributes.contains("baaabaaa")); in test_parseUnicodeExtension() 109 assertTrue(attributes.contains("attri1")); in test_parseUnicodeExtension() 110 assertTrue(attributes.contains("attri2")); in test_parseUnicodeExtension()
|
D | OldAndroidArrayListTest.java | 49 assertFalse(array.contains(null)); in testArrayList() 50 assertTrue(array.contains(new Integer(2))); in testArrayList() 65 assertFalse(array.contains(null)); in testArrayList() 66 assertFalse(array.contains(new Integer(2))); in testArrayList()
|
D | OldTreeSetTest.java | 42 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection() 75 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object() 99 assertTrue("Returned incorrect set", s.contains(i.next())); in test_addAllLjava_util_Collection() 140 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_headSetLjava_lang_Object() 189 aSubSet.contains(objArray[counter])); in test_subSetLjava_lang_ObjectLjava_lang_Object() 226 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_tailSetLjava_lang_Object()
|
/libcore/luni/src/main/java/org/apache/harmony/security/ |
D | SystemScope.java | 137 boolean contains = names.containsKey(name); in removeIdentity() 143 contains = contains || keys.containsKey(key); in removeIdentity() 147 if (!contains) { in removeIdentity()
|
/libcore/luni/src/main/java/java/util/ |
D | AbstractCollection.java | 126 public boolean contains(Object object) { in contains() method in AbstractCollection 167 if (!contains(it.next())) { in containsAll() 277 if (collection.contains(it.next())) { in removeAll() 318 if (!collection.contains(it.next())) { in retainAll()
|