public class Atomic8Test extends JSR166TestCase
JSR166TestCase.AdjustablePolicy, JSR166TestCase.CallableOne, JSR166TestCase.CheckedBarrier, JSR166TestCase.CheckedCallable<T>, JSR166TestCase.CheckedInterruptedCallable<T>, JSR166TestCase.CheckedInterruptedRunnable, JSR166TestCase.CheckedRecursiveAction, JSR166TestCase.CheckedRecursiveTask<T>, JSR166TestCase.CheckedRunnable, JSR166TestCase.LongPossiblyInterruptedRunnable, JSR166TestCase.MediumInterruptedRunnable, JSR166TestCase.MediumPossiblyInterruptedRunnable, JSR166TestCase.MediumRunnable, JSR166TestCase.NoOpCallable, JSR166TestCase.NoOpREHandler, JSR166TestCase.NoOpRunnable, JSR166TestCase.NPETask, JSR166TestCase.RunnableShouldThrow, JSR166TestCase.ShortInterruptedRunnable, JSR166TestCase.ShortRunnable, JSR166TestCase.SimpleThreadFactory, JSR166TestCase.SmallCallable, JSR166TestCase.SmallPossiblyInterruptedRunnable, JSR166TestCase.SmallRunnable, JSR166TestCase.StringTask, JSR166TestCase.ThreadShouldThrow, JSR166TestCase.TrackedCallable, JSR166TestCase.TrackedLongRunnable, JSR166TestCase.TrackedMediumRunnable, JSR166TestCase.TrackedNoOpRunnable, JSR166TestCase.TrackedRunnable, JSR166TestCase.TrackedShortRunnable, JSR166TestCase.TrackedSmallRunnable
eight, expensiveTests, five, four, JAVA_CLASS_VERSION, JAVA_SPECIFICATION_VERSION, LONG_DELAY_MS, m1, m10, m2, m3, m4, m5, m6, MEDIUM_DELAY_MS, nine, one, seven, SHORT_DELAY_MS, six, SIZE, SMALL_DELAY_MS, TEST_STRING, testImplementationDetails, three, two, zero
Constructor and Description |
---|
Atomic8Test() |
Modifier and Type | Method and Description |
---|---|
void |
testAccumulateAndGetNPE()
All Atomic accumulateAndGet methods throw NullPointerException
on null function argument
|
void |
testGetAndAccumulateNPE()
All Atomic getAndAccumulate methods throw NullPointerException
on null function argument
|
void |
testGetAndUpdateNPE()
All Atomic getAndUpdate methods throw NullPointerException on
null function argument
|
void |
testIntAccumulateAndGet()
AtomicInteger accumulateAndGet updates with supplied function and
returns result.
|
void |
testIntArrayAccumulateAndGet()
AtomicIntegerArray accumulateAndGet updates with supplied function and
returns result.
|
void |
testIntArrayGetAndAccumulate()
AtomicIntegerArray getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testIntArrayGetAndUpdate()
AtomicIntegerArray getAndUpdate returns previous value and updates
result of supplied function
|
void |
testIntArrayUpdateAndGet()
AtomicIntegerArray updateAndGet updates with supplied function and
returns result.
|
void |
testIntegerFieldUpdaterAccumulateAndGet()
AtomicIntegerFieldUpdater accumulateAndGet updates with supplied
function and returns result.
|
void |
testIntegerFieldUpdaterGetAndAccumulate()
AtomicIntegerFieldUpdater getAndAccumulate returns previous value
and updates with supplied function.
|
void |
testIntegerFieldUpdaterGetAndUpdate()
AtomicIntegerFieldUpdater getAndUpdate returns previous value and updates
result of supplied function
|
void |
testIntegerFieldUpdaterUpdateAndGet()
AtomicIntegerFieldUpdater updateAndGet updates with supplied function and
returns result.
|
void |
testIntGetAndAccumulate()
AtomicInteger getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testIntGetAndUpdate()
AtomicInteger getAndUpdate returns previous value and updates
result of supplied function
|
void |
testIntUpdateAndGet()
AtomicInteger updateAndGet updates with supplied function and
returns result.
|
void |
testLongAccumulateAndGet()
AtomicLong accumulateAndGet updates with supplied function and
returns result.
|
void |
testLongArrayAccumulateAndGet()
AtomicLongArray accumulateAndGet updates with supplied function and
returns result.
|
void |
testLongArrayGetAndAccumulate()
AtomicLongArray getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testLongArrayGetAndUpdate()
AtomicLongArray getAndUpdate returns previous value and updates
result of supplied function
|
void |
testLongArrayUpdateAndGet()
AtomicLongArray updateAndGet updates with supplied function and
returns result.
|
void |
testLongFieldUpdaterAccumulateAndGet()
AtomicLongFieldUpdater accumulateAndGet updates with supplied
function and returns result.
|
void |
testLongFieldUpdaterGetAndAccumulate()
AtomicLongFieldUpdater getAndAccumulate returns previous value
and updates with supplied function.
|
void |
testLongFieldUpdaterGetAndUpdate()
AtomicLongFieldUpdater getAndUpdate returns previous value and updates
result of supplied function
|
void |
testLongFieldUpdaterUpdateAndGet()
AtomicLongFieldUpdater updateAndGet updates with supplied function and
returns result.
|
void |
testLongGetAndAccumulate()
AtomicLong getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testLongGetAndUpdate()
AtomicLong getAndUpdate returns previous value and updates
result of supplied function
|
void |
testLongUpdateAndGet()
AtomicLong updateAndGet updates with supplied function and
returns result.
|
void |
testReferenceAccumulateAndGet()
AtomicReference accumulateAndGet updates with supplied function and
returns result.
|
void |
testReferenceArrayAccumulateAndGet()
AtomicReferenceArray accumulateAndGet updates with supplied function and
returns result.
|
void |
testReferenceArrayGetAndAccumulate()
AtomicReferenceArray getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testReferenceArrayGetAndUpdate()
AtomicReferenceArray getAndUpdate returns previous value and updates
result of supplied function
|
void |
testReferenceArrayUpdateAndGet()
AtomicReferenceArray updateAndGet updates with supplied function and
returns result.
|
void |
testReferenceFieldUpdaterAccumulateAndGet()
AtomicReferenceFieldUpdater accumulateAndGet updates with
supplied function and returns result.
|
void |
testReferenceFieldUpdaterGetAndAccumulate()
AtomicReferenceFieldUpdater returns previous value and updates
with supplied function.
|
void |
testReferenceFieldUpdaterGetAndUpdate()
AtomicReferenceFieldUpdater getAndUpdate returns previous value
and updates result of supplied function
|
void |
testReferenceFieldUpdaterUpdateAndGet()
AtomicReferenceFieldUpdater updateAndGet updates with supplied
function and returns result.
|
void |
testReferenceGetAndAccumulate()
AtomicReference getAndAccumulate returns previous value and updates
with supplied function.
|
void |
testReferenceGetAndUpdate()
AtomicReference getAndUpdate returns previous value and updates
result of supplied function
|
void |
testReferenceUpdateAndGet()
AtomicReference updateAndGet updates with supplied function and
returns result.
|
void |
testUpdateAndGetNPE()
All Atomic updateAndGet methods throw NullPointerException on null function argument
|
addNamedTestClasses, assertIteratorExhausted, assertThrows, atLeastJava10, atLeastJava6, atLeastJava7, atLeastJava8, atLeastJava9, await, await, await, awaiter, countDowner, getShortDelay, jdk8ParameterizedTestSuite, latchAwaitingStringTask, newTestSuite, parameterizedTestSuite, permissivePolicy, possiblyInterruptedRunnable, runBare, runTest, runTestProfiled, runWithoutPermissions, runWithPermissions, runWithSecurityManagerWithPermissions, setDelays, setUp, shouldThrow, shouldThrow, tearDown, testMethodNames, threadAssertEquals, threadAssertEquals, threadAssertFalse, threadAssertNull, threadAssertSame, threadAssertTrue, threadFail, threadRecordFailure, threadShouldThrow, threadShouldThrow, threadUnexpectedException, trackedRunnable
public void testLongGetAndUpdate()
public void testLongUpdateAndGet()
public void testLongGetAndAccumulate()
public void testLongAccumulateAndGet()
public void testIntGetAndUpdate()
public void testIntUpdateAndGet()
public void testIntGetAndAccumulate()
public void testIntAccumulateAndGet()
public void testReferenceGetAndUpdate()
public void testReferenceUpdateAndGet()
public void testReferenceGetAndAccumulate()
public void testReferenceAccumulateAndGet()
public void testLongArrayGetAndUpdate()
public void testLongArrayUpdateAndGet()
public void testLongArrayGetAndAccumulate()
public void testLongArrayAccumulateAndGet()
public void testIntArrayGetAndUpdate()
public void testIntArrayUpdateAndGet()
public void testIntArrayGetAndAccumulate()
public void testIntArrayAccumulateAndGet()
public void testReferenceArrayGetAndUpdate()
public void testReferenceArrayUpdateAndGet()
public void testReferenceArrayGetAndAccumulate()
public void testReferenceArrayAccumulateAndGet()
public void testLongFieldUpdaterGetAndUpdate()
public void testLongFieldUpdaterUpdateAndGet()
public void testLongFieldUpdaterGetAndAccumulate()
public void testLongFieldUpdaterAccumulateAndGet()
public void testIntegerFieldUpdaterGetAndUpdate()
public void testIntegerFieldUpdaterUpdateAndGet()
public void testIntegerFieldUpdaterGetAndAccumulate()
public void testIntegerFieldUpdaterAccumulateAndGet()
public void testReferenceFieldUpdaterGetAndUpdate()
public void testReferenceFieldUpdaterUpdateAndGet()
public void testReferenceFieldUpdaterGetAndAccumulate()
public void testReferenceFieldUpdaterAccumulateAndGet()
public void testGetAndUpdateNPE()
public void testUpdateAndGetNPE()
public void testGetAndAccumulateNPE()
public void testAccumulateAndGetNPE()