Home
last modified time | relevance | path

Searched refs:set1 (Results 1 – 5 of 5) sorted by relevance

/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java130 private static <T> void crossCheckOrdering(Set<T> set1, Set<T> set2, Class<?> elementType) { in crossCheckOrdering() argument
131 Iterator<T> set1Iterator = set1.iterator(); in crossCheckOrdering()
135 T[] set1TypedArray1 = set1.toArray(zeroLengthArray); in crossCheckOrdering()
136 assertEquals(set1.size(), set1TypedArray1.length); in crossCheckOrdering()
153 assertEquals(set1.size(), entryCount); in crossCheckOrdering()
158 T[] parameterArray1 = createArray(elementType, set1.size()); in crossCheckOrdering()
159 T[] set1TypedArray2 = set1.toArray(parameterArray1); in crossCheckOrdering()
164 Object[] set1UntypedArray = set1.toArray(); in crossCheckOrdering()
165 assertEquals(set1.size(), set1UntypedArray.length); in crossCheckOrdering()
170 assertEquals(set1.size(), set2TypedArray1.length); in crossCheckOrdering()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java2344 private static <T> void crossCheckOrdering(Set<T> set1, Set<T> set2, Class<?> elementType) { in crossCheckOrdering() argument
2345 Iterator<T> set1Iterator = set1.iterator(); in crossCheckOrdering()
2349 T[] set1TypedArray1 = set1.toArray(zeroLengthArray); in crossCheckOrdering()
2350 assertEquals(set1.size(), set1TypedArray1.length); in crossCheckOrdering()
2367 assertEquals(set1.size(), entryCount); in crossCheckOrdering()
2372 T[] parameterArray1 = createArray(elementType, set1.size()); in crossCheckOrdering()
2373 T[] set1TypedArray2 = set1.toArray(parameterArray1); in crossCheckOrdering()
2378 Object[] set1UntypedArray = set1.toArray(); in crossCheckOrdering()
2379 assertEquals(set1.size(), set1UntypedArray.length); in crossCheckOrdering()
2384 assertEquals(set1.size(), set2TypedArray1.length); in crossCheckOrdering()
[all …]
DEnumMapTest.java343 Set set1 = enumSizeMap.entrySet(); in test_entrySet() local
344 assertSame("Should be same", set1, set); in test_entrySet()
611 Set set1 = enumSizeMap.keySet(); in test_keySet() local
612 assertSame("Should be same", set1, set); in test_keySet()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMap8Test.java238 Set set1 = map.keySet(); in testKeySetAddRemove() local
242 assertTrue(((ConcurrentHashMap.KeySetView)set1).getMap() == map); in testKeySetAddRemove()
244 assertEquals(set1.size(), map.size()); in testKeySetAddRemove()
246 assertTrue(set1.contains(six)); in testKeySetAddRemove()
250 assertFalse(set1.contains(six)); in testKeySetAddRemove()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java214 Set set1 = map.keySet(); in testKeySetAddRemove() local
218 assertTrue(((ConcurrentHashMap.KeySetView)set1).getMap() == map); in testKeySetAddRemove()
220 assertEquals(set1.size(), map.size()); in testKeySetAddRemove()
222 assertTrue(set1.contains(six)); in testKeySetAddRemove()
226 assertFalse(set1.contains(six)); in testKeySetAddRemove()