Searched refs:key2 (Results 1 – 9 of 9) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollationKeyTest.java | 34 CollationKey key2 = collator.getCollationKey("ABC"); in test_compareToLjava_text_CollationKey() local 35 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_text_CollationKey() 47 CollationKey key2 = collator.getCollationKey("ABC"); in test_compareToLjava_lang_Object() local 48 assertEquals("Should be equal", 0, key1.compareTo(key2)); in test_compareToLjava_lang_Object() 58 CollationKey key2 = collator.getCollationKey("ABC"); in test_equalsLjava_lang_Object() local 59 assertTrue("Should be equal", key1.equals(key2)); in test_equalsLjava_lang_Object() 81 CollationKey key2 = collator.getCollationKey("ABC"); in test_hashCode() local 82 assertTrue("Should be equal", key1.hashCode() == key2.hashCode()); in test_hashCode()
|
D | RuleBasedCollatorTest.java | 88 CollationKey key2 = coll.getCollationKey(source2); in testGetCollationKey() local 89 assertEquals(source2, key2.getSourceString()); in testGetCollationKey() 90 assertTrue(key1.compareTo(key2) > 0); in testGetCollationKey() 224 CollationKey key2 = coll.getCollationKey("abc"); in testCollationKey() local 226 assertEquals(0, key.compareTo(key2)); in testCollationKey()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpec2Test.java | 63 private boolean isEqual(Key key1, Key key2) { in isEqual() argument 64 if (key1 instanceof DSAPublicKey && key2 instanceof DSAPublicKey) { in isEqual() 66 DSAPublicKey dsa2 = ((DSAPublicKey) key2); in isEqual() 73 && key2 instanceof DSAPrivateKey) { in isEqual() 75 DSAPrivateKey dsa2 = ((DSAPrivateKey) key2); in isEqual()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 112 SelectionKey key2 = keySet.iterator().next(); in test_keys() local 113 assertEquals(key,key2); in test_keys() 339 SelectionKey key2 = sc.register(selector, SelectionKey.OP_READ); 342 assertTrue(keys.contains(key2)); 349 assertTrue(keys.contains(key2));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | IdentityHashMap2Test.java | 155 Set key2 = map2.keySet(); in test_clone() local 156 assertTrue("keySet() is identical", key2 != keys); in test_clone() 158 "key2", key2.iterator().next()); in test_clone()
|
D | IdentityHashMapTest.java | 163 Set key2 = map2.keySet(); in test_clone() local 164 assertTrue("keySet() is identical", key2 != keys); in test_clone() 166 "key2", key2.iterator().next()); in test_clone() 1064 String key2 = "key2"; in test_replaceAll() local 1068 map.put(key2, "2"); in test_replaceAll() 1074 assertEquals("key22", map.get(key2)); in test_replaceAll()
|
D | HashMapTest.java | 223 Set key2 = map2.keySet(); in test_clone() local 224 assertTrue("keySet() is identical", key2 != keys); in test_clone() 226 "key2", key2.iterator().next()); in test_clone()
|
D | LinkedHashMapTest.java | 396 Set key2 = map2.keySet(); in test_clone() local 397 assertTrue("keySet() is identical", key2 != keys); in test_clone() 399 "key2", key2.iterator().next()); in test_clone()
|
D | TreeMapTest.java | 195 Set key2 = map2.keySet(); in test_clone() local 196 assertTrue("keySet() is identical", key2 != keys); in test_clone() 197 assertEquals("keySet() was not cloned", "key2", key2.iterator().next()); in test_clone() 278 Integer key2 = 2; in test_getLjava_lang_Object() local 280 assertNull(tm.put(key2, o)); in test_getLjava_lang_Object() 283 assertSame(tm.get(key1), tm.get(key2)); in test_getLjava_lang_Object()
|