Home
last modified time | relevance | path

Searched refs:key2 (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DCollationKeyTest.java34 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()
DRuleBasedCollatorTest.java88 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/
DEncodedKeySpec2Test.java63 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/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java196 SelectionKey key2 = sink.register(sel, SelectionKey.OP_WRITE); in testTwoChannels() local
203 assertTrue(key2.isWritable()); in testTwoChannels()
214 assertTrue(k == key1 || k == key2); in testTwoChannels()
223 assertTrue(k == key1 || k == key2); in testTwoChannels()
232 assertTrue(k == key1 || k == key2); in testTwoChannels()
561 SelectionKey key2 = sink.register(sel, SelectionKey.OP_WRITE); in testCancel() local
565 assertTrue(sel.keys().contains(key2)); in testCancel()
567 assertTrue(sel.selectedKeys().contains(key2)); in testCancel()
571 int n = sel.selectNow(k -> assertTrue(k == key2)); in testCancel()
574 assertTrue(sel.keys().contains(key2)); in testCancel()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java112 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/
DIdentityHashMap2Test.java155 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()
DIdentityHashMapTest.java163 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()
DHashMapTest.java223 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()
DLinkedHashMapTest.java396 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()
DTreeMapTest.java195 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()