Searched refs:expectedArray (Results 1 – 6 of 6) sorted by relevance
39 long[] expectedArray = { 42, 43, 44, 45 }; in testCompareAndExchange() local40 AtomicLongArray arr = new AtomicLongArray(expectedArray); in testCompareAndExchange()42 assertEquals(expectedArray[i], arr.compareAndExchange(i, 0, i+1)); in testCompareAndExchange()43 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()45 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], i+1)); in testCompareAndExchange()47 expectedArray[i] = i+1; in testCompareAndExchange()48 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()52 expectedArray[i] = -1; in testCompareAndExchange()53 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()57 expectedArray[i] = i*2; in testCompareAndExchange()[all …]
39 int[] expectedArray = { 42, 43, 44, 45 }; in testCompareAndExchange() local40 AtomicIntegerArray arr = new AtomicIntegerArray(expectedArray); in testCompareAndExchange()42 assertEquals(expectedArray[i], arr.compareAndExchange(i, 0, i+1)); in testCompareAndExchange()43 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()45 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], i+1)); in testCompareAndExchange()47 expectedArray[i] = i+1; in testCompareAndExchange()48 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()52 expectedArray[i] = -1; in testCompareAndExchange()53 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()57 expectedArray[i] = i*2; in testCompareAndExchange()[all …]
40 Integer[] expectedArray = { in testCompareAndExchange() local46 AtomicReferenceArray<Integer> arr = new AtomicReferenceArray(expectedArray); in testCompareAndExchange()49 assertEquals(expectedArray[i], arr.compareAndExchange(i, Integer.valueOf(0), val)); in testCompareAndExchange()50 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()52 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], val)); in testCompareAndExchange()55 expectedArray[i] = val; in testCompareAndExchange()56 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()59 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], val)); in testCompareAndExchange()62 expectedArray[i] = val; in testCompareAndExchange()63 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()[all …]
251 List expectedArray = new ArrayList(expected); in assertEqualsIgnoreCase() local258 expectedIter = expectedArray.iterator(); in assertEqualsIgnoreCase()264 expectedArray.remove(expectedString); in assertEqualsIgnoreCase()315 List expectedArray = new ArrayList(expected); in assertEquals() local322 expectedIter = expectedArray.iterator(); in assertEquals()328 expectedArray.remove(expectedObj); in assertEquals()380 List expectedArray = new ArrayList(expected); in equalsIgnoreCase() local387 expectedIter = expectedArray.iterator(); in equalsIgnoreCase()393 expectedArray.remove(expectedString); in equalsIgnoreCase()439 List expectedArray = new ArrayList(expected); in equals() local[all …]
1192 private Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList1196 expectedArray = es; in COWSubList()1203 if (getArray() != expectedArray) in checkForComodification()1210 if (a != expectedArray) in getArrayChecked()1352 expectedArray = getArray(); in set()1376 expectedArray = getArray(); in add()1387 expectedArray = getArray(); in add()1397 size += (expectedArray = getArray()).length - oldArray.length; in addAll()1408 size += (expectedArray = getArray()).length - oldArray.length; in addAll()1417 expectedArray = getArray(); in clear()[all …]
415 private java.lang.Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList