public class ForkJoinTask8Test extends JSR166TestCase
Modifier and Type | Class and Description |
---|---|
static class |
ForkJoinTask8Test.FJException |
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 |
---|
ForkJoinTask8Test() |
Modifier and Type | Method and Description |
---|---|
void |
testAbnormalForkGet_Singleton() |
void |
testAbnormalForkGet()
get of a forked task throws exception when task completes abnormally
|
void |
testAbnormalForkGet(ForkJoinPool pool) |
void |
testAbnormalForkJoin_Singleton() |
void |
testAbnormalForkJoin()
join of a forked task throws exception when task completes abnormally
|
void |
testAbnormalForkJoin(ForkJoinPool pool) |
void |
testAbnormalForkQuietlyJoin_Singleton() |
void |
testAbnormalForkQuietlyJoin()
quietlyJoin of a forked task returns when task completes abnormally
|
void |
testAbnormalForkQuietlyJoin(ForkJoinPool pool) |
void |
testAbnormalForkTimedGet_Singleton() |
void |
testAbnormalForkTimedGet()
timed get of a forked task throws exception when task completes abnormally
|
void |
testAbnormalForkTimedGet(ForkJoinPool pool) |
void |
testAbnormalInvoke_Singleton() |
void |
testAbnormalInvoke()
invoke task throws exception when task completes abnormally
|
void |
testAbnormalInvoke(ForkJoinPool pool) |
void |
testAbnormalInvokeAll1_Singleton() |
void |
testAbnormalInvokeAll1()
invokeAll(tasks) with 1 argument throws exception if task does
|
void |
testAbnormalInvokeAll1(ForkJoinPool pool) |
void |
testAbnormalInvokeAll2_Singleton() |
void |
testAbnormalInvokeAll2()
invokeAll(t1, t2) throw exception if any task does
|
void |
testAbnormalInvokeAll2(ForkJoinPool pool) |
void |
testAbnormalInvokeAll3_Singleton() |
void |
testAbnormalInvokeAll3()
invokeAll(tasks) with > 2 argument throws exception if any task does
|
void |
testAbnormalInvokeAll3(ForkJoinPool pool) |
void |
testAbnormalInvokeAllCollection_Singleton() |
void |
testAbnormalInvokeAllCollection()
invokeAll(collection) throws exception if any task does
|
void |
testAbnormalInvokeAllCollection(ForkJoinPool pool) |
void |
testAbnormalQuietlyInvoke_Singleton() |
void |
testAbnormalQuietlyInvoke()
quietlyInvoke task returns when task completes abnormally
|
void |
testAbnormalQuietlyInvoke(ForkJoinPool pool) |
void |
testCompleteExceptionally_Singleton() |
void |
testCompleteExceptionally()
invoke task throws exception after invoking completeExceptionally
|
void |
testCompleteExceptionally(ForkJoinPool pool) |
void |
testForkGet_Singleton() |
void |
testForkGet()
get of a forked task returns when task completes
|
void |
testForkGet(ForkJoinPool pool) |
void |
testForkHelpQuiesce_Singleton() |
void |
testForkHelpQuiesce()
helpQuiesce returns when tasks are complete.
|
void |
testForkHelpQuiesce(ForkJoinPool pool) |
void |
testForkJoin_Singleton() |
void |
testForkJoin()
join of a forked task returns when task completes
|
void |
testForkJoin(ForkJoinPool pool) |
void |
testForkQuietlyJoin_Singleton() |
void |
testForkQuietlyJoin()
quietlyJoin of a forked task returns when task completes
|
void |
testForkQuietlyJoin(ForkJoinPool pool) |
void |
testForkTimedGet_Singleton() |
void |
testForkTimedGet()
timed get of a forked task returns when task completes
|
void |
testForkTimedGet(ForkJoinPool pool) |
void |
testForkTimedGetNullTimeUnit_Singleton() |
void |
testForkTimedGetNullTimeUnit()
timed get with null time unit throws NullPointerException
|
void |
testForkTimedGetNullTimeUnit(ForkJoinPool pool) |
void |
testGetPool_Singleton() |
void |
testGetPool()
getPool of executing task returns its pool
|
void |
testGetPool(ForkJoinPool pool) |
void |
testGetPool2()
getPool of non-FJ task returns null
|
void |
testGetSurplusQueuedTaskCount()
getSurplusQueuedTaskCount returns > 0 when
there are more tasks than threads
|
void |
testInForkJoinPool_Singleton() |
void |
testInForkJoinPool()
inForkJoinPool of executing task returns true
|
void |
testInForkJoinPool(ForkJoinPool pool) |
void |
testInForkJoinPool2()
inForkJoinPool of non-FJ task returns false
|
void |
testInvoke_Singleton() |
void |
testInvoke()
invoke returns when task completes normally.
|
void |
testInvoke(ForkJoinPool pool) |
void |
testInvokeAll1_Singleton() |
void |
testInvokeAll1()
invokeAll(tasks) with 1 argument invokes task
|
void |
testInvokeAll1(ForkJoinPool pool) |
void |
testInvokeAll2_Singleton() |
void |
testInvokeAll2()
invokeAll(t1, t2) invokes all task arguments
|
void |
testInvokeAll2(ForkJoinPool pool) |
void |
testInvokeAll3_Singleton() |
void |
testInvokeAll3()
invokeAll(tasks) with > 2 argument invokes tasks
|
void |
testInvokeAll3(ForkJoinPool pool) |
void |
testInvokeAllCollection_Singleton() |
void |
testInvokeAllCollection()
invokeAll(collection) invokes all tasks in the collection
|
void |
testInvokeAllCollection(ForkJoinPool pool) |
void |
testInvokeAllNullTask_Singleton() |
void |
testInvokeAllNullTask()
invokeAll(tasks) with any null task throws NullPointerException
|
void |
testInvokeAllNullTask(ForkJoinPool pool) |
void |
testPeekNextLocalTask()
peekNextLocalTask returns most recent unexecuted task.
|
void |
testPeekNextLocalTaskAsync()
peekNextLocalTask returns least recent unexecuted task in async mode
|
void |
testPollNextLocalTask()
pollNextLocalTask returns most recent unexecuted task without
executing it
|
void |
testPollNextLocalTaskAsync()
pollNextLocalTask returns least recent unexecuted task without
executing it, in async mode
|
void |
testPollSubmission()
pollSubmission returns unexecuted submitted task, if present
|
void |
testPollTask()
pollTask returns an unexecuted task without executing it
|
void |
testPollTaskAsync()
pollTask returns an unexecuted task without executing it, in
async mode
|
void |
testQuietlyComplete()
ForkJoinTask.quietlyComplete returns when task completes
normally without setting a value.
|
void |
testQuietlyInvoke_Singleton() |
void |
testQuietlyInvoke()
quietlyInvoke task returns when task completes normally.
|
void |
testQuietlyInvoke(ForkJoinPool pool) |
void |
testSetRawResult()
setRawResult(null) succeeds
|
void |
testTryUnfork()
tryUnfork returns true for most recent unexecuted task,
and suppresses execution
|
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 testInvoke()
public void testInvoke_Singleton()
public void testInvoke(ForkJoinPool pool)
public void testQuietlyInvoke()
public void testQuietlyInvoke_Singleton()
public void testQuietlyInvoke(ForkJoinPool pool)
public void testForkJoin()
public void testForkJoin_Singleton()
public void testForkJoin(ForkJoinPool pool)
public void testForkGet()
public void testForkGet_Singleton()
public void testForkGet(ForkJoinPool pool)
public void testForkTimedGet()
public void testForkTimedGet_Singleton()
public void testForkTimedGet(ForkJoinPool pool)
public void testForkTimedGetNullTimeUnit()
public void testForkTimedGetNullTimeUnit_Singleton()
public void testForkTimedGetNullTimeUnit(ForkJoinPool pool)
public void testForkQuietlyJoin()
public void testForkQuietlyJoin_Singleton()
public void testForkQuietlyJoin(ForkJoinPool pool)
public void testForkHelpQuiesce()
public void testForkHelpQuiesce_Singleton()
public void testForkHelpQuiesce(ForkJoinPool pool)
public void testAbnormalInvoke()
public void testAbnormalInvoke_Singleton()
public void testAbnormalInvoke(ForkJoinPool pool)
public void testAbnormalQuietlyInvoke()
public void testAbnormalQuietlyInvoke_Singleton()
public void testAbnormalQuietlyInvoke(ForkJoinPool pool)
public void testAbnormalForkJoin()
public void testAbnormalForkJoin_Singleton()
public void testAbnormalForkJoin(ForkJoinPool pool)
public void testAbnormalForkGet()
public void testAbnormalForkGet_Singleton()
public void testAbnormalForkGet(ForkJoinPool pool)
public void testAbnormalForkTimedGet()
public void testAbnormalForkTimedGet_Singleton()
public void testAbnormalForkTimedGet(ForkJoinPool pool)
public void testAbnormalForkQuietlyJoin()
public void testAbnormalForkQuietlyJoin_Singleton()
public void testAbnormalForkQuietlyJoin(ForkJoinPool pool)
public void testGetPool()
public void testGetPool_Singleton()
public void testGetPool(ForkJoinPool pool)
public void testGetPool2()
public void testInForkJoinPool()
public void testInForkJoinPool_Singleton()
public void testInForkJoinPool(ForkJoinPool pool)
public void testInForkJoinPool2()
public void testSetRawResult()
public void testCompleteExceptionally()
public void testCompleteExceptionally_Singleton()
public void testCompleteExceptionally(ForkJoinPool pool)
public void testInvokeAll1()
public void testInvokeAll1_Singleton()
public void testInvokeAll1(ForkJoinPool pool)
public void testInvokeAll2()
public void testInvokeAll2_Singleton()
public void testInvokeAll2(ForkJoinPool pool)
public void testInvokeAll3()
public void testInvokeAll3_Singleton()
public void testInvokeAll3(ForkJoinPool pool)
public void testInvokeAllCollection()
public void testInvokeAllCollection_Singleton()
public void testInvokeAllCollection(ForkJoinPool pool)
public void testInvokeAllNullTask()
public void testInvokeAllNullTask_Singleton()
public void testInvokeAllNullTask(ForkJoinPool pool)
public void testAbnormalInvokeAll1()
public void testAbnormalInvokeAll1_Singleton()
public void testAbnormalInvokeAll1(ForkJoinPool pool)
public void testAbnormalInvokeAll2()
public void testAbnormalInvokeAll2_Singleton()
public void testAbnormalInvokeAll2(ForkJoinPool pool)
public void testAbnormalInvokeAll3()
public void testAbnormalInvokeAll3_Singleton()
public void testAbnormalInvokeAll3(ForkJoinPool pool)
public void testAbnormalInvokeAllCollection()
public void testAbnormalInvokeAllCollection_Singleton()
public void testAbnormalInvokeAllCollection(ForkJoinPool pool)
public void testTryUnfork()
public void testGetSurplusQueuedTaskCount()
public void testPeekNextLocalTask()
public void testPollNextLocalTask()
public void testPollTask()
public void testPeekNextLocalTaskAsync()
public void testPollNextLocalTaskAsync()
public void testPollTaskAsync()
public void testQuietlyComplete()
public void testPollSubmission()