Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSpinedBufferTest.java120 List<Integer> list2 = new ArrayList<>(); in testSpinedBuffer() local
128 list2.add(it.next()); in testSpinedBuffer()
130 assertEquals(list1, list2); in testSpinedBuffer()
135 list2.clear(); in testSpinedBuffer()
136 sb.forEach(list2::add); in testSpinedBuffer()
137 assertEquals(list1, list2); in testSpinedBuffer()
139 list2.clear(); in testSpinedBuffer()
141 list2.add(i); in testSpinedBuffer()
142 assertEquals(list1, list2); in testSpinedBuffer()
195 List<Integer> list2 = new ArrayList<>(); in testIntSpinedBuffer() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayListTest.java250 ArrayList list2 = new ArrayList(); in test_addAllILjava_util_Collection_2() local
253 list2.add(d); in test_addAllILjava_util_Collection_2()
254 list2.add(d); in test_addAllILjava_util_Collection_2()
258 list1.addAll(list2); in test_addAllILjava_util_Collection_2()
260 .containsAll(list2) in test_addAllILjava_util_Collection_2()
261 && list2.containsAll(list1)); in test_addAllILjava_util_Collection_2()
276 list2 = new ArrayList(); in test_addAllILjava_util_Collection_2()
285 list2.add(integers[i]); in test_addAllILjava_util_Collection_2()
288 list1.addAll(location, list2); in test_addAllILjava_util_Collection_2()
1168 ArrayList<Integer> list2 = new ArrayList<>(); in test_spliterator_CME() local
[all …]
DAbstractListTest.java109 SimpleList list2 = new SimpleList(); in test_listIterator() local
110 list2.add(new Object()); in test_listIterator()
111 ListIterator lit2 = list2.listIterator(); in test_listIterator()
DCollectionsTest.java573 LinkedList list2 = new LinkedList(ll); in test_reverseOrder() local
574 Collections.sort(list2, comp); in test_reverseOrder()
577 assertEquals("New comparator does not reverse sorting order", list2 in test_reverseOrder()
943 ArrayList list2 = new ArrayList(); in test_rotateLjava_util_ListI() local
945 list2.add(objArray[i]); in test_rotateLjava_util_ListI()
947 testRotate(list2, "Random Access"); in test_rotateLjava_util_ListI()
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java265 ArrayList<IntegerWithExtremeComparator> list2 = in testBinarySearch_comparatorThatReturnsMinAndMaxValue() local
267 list2.add(new IntegerWithExtremeComparator(4)); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()
268 list2.add(new IntegerWithExtremeComparator(9)); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()
269 list2.add(new IntegerWithExtremeComparator(11)); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()
270 list2.add(new IntegerWithExtremeComparator(14)); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()
271 list2.add(new IntegerWithExtremeComparator(16)); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()
273 assertEquals(1, Collections.binarySearch(list2, new IntegerWithExtremeComparator(9))); in testBinarySearch_comparatorThatReturnsMinAndMaxValue()