/libcore/ojluni/src/test/java/util/LinkedHashMap/ |
D | Basic.java | 76 Map<Integer,Integer> m2 = new LinkedHashMap(); m2.putAll(m); in testBasic() local 77 m2.values().removeAll(m.keySet()); in testBasic() 78 Assert.assertFalse(m2.size()!= 1 || !m2.containsValue(nil)); in testBasic() 99 Map<Integer,Integer> m2 = new LinkedHashMap(); m2.putAll(m); in testBasic() local 100 Assert.assertTrue(m.equals(m2)); in testBasic() 101 Assert.assertTrue(m2.equals(m)); in testBasic() 102 Set<Map.Entry<Integer,Integer>> s = m.entrySet(), s2 = m2.entrySet(); in testBasic() 108 m2 = serClone(m); in testBasic() 109 Assert.assertTrue(m.equals(m2)); in testBasic() 110 Assert.assertTrue(m2.equals(m)); in testBasic() [all …]
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | BiggernYours.java | 81 static void compareMaps(Map m1, Map m2) { in compareMaps() argument 83 m2.keySet()); in compareMaps() 85 m2.values()); in compareMaps() 87 m2.entrySet()); in compareMaps() 90 static void compareNavigableMaps(NavigableMap m1, NavigableMap m2) { in compareNavigableMaps() argument 91 compareMaps(m1, m2); in compareNavigableMaps() 93 m2.descendingMap()); in compareNavigableMaps() 95 m2.tailMap(Integer.MIN_VALUE)); in compareNavigableMaps() 97 m2.headMap(Integer.MAX_VALUE)); in compareNavigableMaps() 168 static void testMaps(Map m1, Map m2) { [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | CheckedMapBash.java | 90 Map m2 = supplier.get(); m2.putAll(m); in testCheckedMap() local 91 m2.values().removeAll(m.keySet()); in testCheckedMap() 92 if (m2.size()!= 1 || !m2.containsValue(nil)) in testCheckedMap() 123 Map m2 = supplier.get(); m2.putAll(m); in testCheckedMap2() local 124 if (!m.equals(m2)) in testCheckedMap2() 126 if (!m2.equals(m)) in testCheckedMap2() 128 Set s = m.entrySet(), s2 = m2.entrySet(); in testCheckedMap2() 139 if (!m2.isEmpty()) in testCheckedMap2() 142 m2.putAll(m); in testCheckedMap2() 143 m2.clear(); in testCheckedMap2() [all …]
|
D | CheckedIdentityMap.java | 49 Map<Integer, Integer> m2 = checkedMap( in testHashCode() local 54 m2.put(new Integer(1), new Integer(1)); in testHashCode() 57 Map.Entry<Integer, Integer> e2 = m2.entrySet().iterator().next(); in testHashCode()
|
D | ViewSynch.java | 45 static Map m2 = m.tailMap(ZERO); field in ViewSynch 46 static Collection c = m2.values();
|
D | Wrappers.java | 142 Method m2 = cls.getMethod(m.getName(), m.getParameterTypes()); in testAllDefaultMethodsOverridden() local 144 assertFalse(m2.isDefault(), cls.getCanonicalName()); in testAllDefaultMethodsOverridden()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | LockStep.java | 56 void mapsEqual(Map m1, Map m2) { in mapsEqual() argument 57 Assert.assertEquals(m1, m2); in mapsEqual() 58 Assert.assertEquals(m2, m1); in mapsEqual() 59 Assert.assertEquals(m1.size(), m2.size()); in mapsEqual() 60 Assert.assertEquals(m1.isEmpty(), m2.isEmpty()); in mapsEqual() 61 Assert.assertEquals(m1.keySet(), m2.keySet()); in mapsEqual() 62 Assert.assertEquals(m2.keySet(), m1.keySet()); in mapsEqual()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 44 long m2 = System.currentTimeMillis(); in testNanoTime1() local 45 long millis = m2 - m1; in testNanoTime1() 62 long m2 = System.currentTimeMillis(); in testNanoTime2() local 65 long millis = m2 - m1; in testNanoTime2()
|
D | TreeSubMapTest.java | 66 map.put(m2, "B"); in dmap5() 674 assertTrue(s.contains(m2)); 764 (e.getKey().equals(m2) && e.getValue().equals("B")) || 780 assertTrue(empty.containsKey(m2)); 802 assertEquals(m2, e1.getKey()); 877 assertEquals(m2, e.getKey()); 911 map.remove(m2); 986 SortedMap sm = map.subMap(m2, m4); 987 assertEquals(m2, sm.firstKey()); 991 assertTrue(sm.containsKey(m2)); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 61 map.put(m2, "B"); in dmap5() 839 assertTrue(s.contains(m2)); 929 (e.getKey().equals(m2) && e.getValue().equals("B")) || 945 assertTrue(empty.containsKey(m2)); 1037 assertEquals(m2, e1.getKey()); 1112 assertEquals(m2, e.getKey()); 1146 map.remove(m2); 1298 SortedMap sm = map.subMap(m2, m4); 1299 assertEquals(m2, sm.firstKey()); 1303 assertTrue(sm.containsKey(m2)); [all …]
|
D | ConcurrentSkipListSubSetTest.java | 82 q.add(m2); in dset5() 835 assertEquals(m2, e1); in testDescendingLower() 1005 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 1006 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 1010 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1017 assertEquals(m2, k); in testDescendingSubSetContents() 1024 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1036 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1038 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1039 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | TreeSubSetTest.java | 79 q.add(m2); in dset5() 821 assertEquals(m2, e1); in testDescendingLower() 992 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 993 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 997 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1004 assertEquals(m2, k); in testDescendingSubSetContents() 1011 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1023 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1025 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1026 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SystemTest.java | 68 long m2 = System.currentTimeMillis(); in testNanoTime1() local 69 long millis = m2 - m1; in testNanoTime1() 86 long m2 = System.currentTimeMillis(); in testNanoTime2() local 89 long millis = m2 - m1; in testNanoTime2()
|
D | TreeSubMapTest.java | 89 map.put(m2, "B"); in dmap5() 697 assertTrue(s.contains(m2)); 787 (e.getKey().equals(m2) && e.getValue().equals("B")) || 803 assertTrue(empty.containsKey(m2)); 825 assertEquals(m2, e1.getKey()); 900 assertEquals(m2, e.getKey()); 934 map.remove(m2); 1009 SortedMap sm = map.subMap(m2, m4); 1010 assertEquals(m2, sm.firstKey()); 1014 assertTrue(sm.containsKey(m2)); [all …]
|
D | TreeSubSetTest.java | 102 q.add(m2); in dset5() 844 assertEquals(m2, e1); in testDescendingLower() 1015 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 1016 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 1020 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1027 assertEquals(m2, k); in testDescendingSubSetContents() 1034 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1046 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1048 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1049 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 105 q.add(m2); in dset5() 858 assertEquals(m2, e1); in testDescendingLower() 1028 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 1029 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 1033 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1040 assertEquals(m2, k); in testDescendingSubSetContents() 1047 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1059 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1061 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1062 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | ConcurrentSkipListSubMapTest.java | 84 map.put(m2, "B"); in dmap5() 862 assertTrue(s.contains(m2)); 952 (e.getKey().equals(m2) && e.getValue().equals("B")) || 968 assertTrue(empty.containsKey(m2)); 1060 assertEquals(m2, e1.getKey()); 1135 assertEquals(m2, e.getKey()); 1169 map.remove(m2); 1321 SortedMap sm = map.subMap(m2, m4); 1322 assertEquals(m2, sm.firstKey()); 1326 assertTrue(sm.containsKey(m2)); [all …]
|
/libcore/ojluni/src/test/java/util/EnumMap/ |
D | EnumMapBash.java | 90 Map<T, T> m2 = new EnumMap<T, T>(enumClass); m2.putAll(m); in bash() local 91 m2.values().removeAll(m.keySet()); in bash() 92 if (m2.size()!= 1 || !m2.containsValue(nil)) in bash() 125 Map<T, T> m2 = m.clone(); in bash() local 126 cloneTest(m, m2); in bash() 128 m2 = new EnumMap<T,T>(enumClass); in bash() 129 m2.putAll(m); in bash() 130 cloneTest(m, m2); in bash() 132 m2 = new EnumMap<T, T>(m); in bash() 133 cloneTest(m, m2); in bash() [all …]
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | ExactArithTests.java | 107 long m2 = (long) x * (long) y; in testIntegerExact() local 108 if ((int) m2 != m2) { in testIntegerExact() 109 …il("FAIL: int StrictMath.multiplyExact(" + x + " * " + y + ") = " + product + "; expected: " + m2); in testIntegerExact() 112 long m2 = (long) x * (long) y; in testIntegerExact() 113 if ((int) m2 == m2) { in testIntegerExact()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | ExactArithTests.java | 134 long m2 = (long) x * (long) y; in testIntegerExact() local 135 if ((int) m2 != m2) { in testIntegerExact() 136 … fail("FAIL: int Math.multiplyExact(" + x + " * " + y + ") = " + product + "; expected: " + m2); in testIntegerExact() 139 long m2 = (long) x * (long) y; in testIntegerExact() 140 if ((int) m2 == m2) { in testIntegerExact()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 199 Method m1 = null, m2 = null; in test_equalsLjava_lang_Object() local 202 m2 = TestMethodSub.class.getMethod("invokeInstanceTest", in test_equalsLjava_lang_Object() 207 assertTrue("Overriden method returned equal", !m1.equals(m2)); in test_equalsLjava_lang_Object() 211 m2 = TestMethodSub.class in test_equalsLjava_lang_Object() 216 assertTrue("Inherited method returned not-equal", m1.equals(m2)); in test_equalsLjava_lang_Object() 225 Method m2 = TestMethod.class.getMethod("invokeInstanceTest", (Class[]) null); in test_getMethod() local 226 assertEquals(m1, m2); in test_getMethod() 235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null); in test_getDeclaredMethod() local 236 assertEquals(m1, m2); in test_getDeclaredMethod()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldManifestTest.java | 165 Manifest m2 = new Manifest(); in doRoundTrip() local 166 m2.read(is); in doRoundTrip() 167 return (String) m2.getMainAttributes().get(Attributes.Name.CONTENT_TYPE); in doRoundTrip()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodTest.java | 211 Method m2 = MethodTestHelper.class.getMethod("m1"); in testEqualMethodEqualsAndHashCode() local 212 assertEquals(m1, m2); in testEqualMethodEqualsAndHashCode() 213 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualMethodEqualsAndHashCode() 224 Method m2 = MethodTestHelper.class.getMethod("m2", Object.class); in testDifferentMethodEqualsAndHashCode() local 225 assertFalse(m1.equals(m2)); in testDifferentMethodEqualsAndHashCode() 226 assertFalse(m1.hashCode() == m2.hashCode()); in testDifferentMethodEqualsAndHashCode() 330 public void m2(Object o) { } in m2() method in MethodTest.MethodTestHelper
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 46 Method m2 = AnnotatedClass2.class in test_equals() local 49 m1.getDeclaredAnnotations()[0].equals(m2 in test_equals() 123 Method m2 = AnnotatedClass3.class.getDeclaredMethod("a", new Class[] {}); in test_hashCode() local 126 m2.getDeclaredAnnotations()[0].hashCode()); in test_hashCode()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | Basic.java | 193 m2(); in m1() 195 List m2() { in m2() method in Basic.StackBuilder
|