|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
JSR166TestCase
ForkJoinPoolTest
public class ForkJoinPoolTest
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class JSR166TestCase |
|---|
eight, expensiveTests, five, four, 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, three, two, zero |
| Constructor Summary | |
|---|---|
ForkJoinPoolTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testBlockingForkJoinTask()
Pool maintains parallelism when using ManagedBlocker |
void |
testConstructor1()
Constructor throws if size argument is less than zero |
void |
testConstructor2()
Constructor throws if factory argument is null |
void |
testDefaultInitialState()
Successfully constructed pool reports default factory, parallelism and async mode policies, no active threads or tasks, and quiescent running state. |
void |
testDrainTasksTo()
drainTasksTo transfers unexecuted submitted tasks, if present |
void |
testExecuteNullRunnable()
execute(null runnable) throws NullPointerException |
void |
testExecuteRunnable()
execute(runnable) runs it to completion |
void |
testGetParallelism()
getParallelism returns size set in constructor |
void |
testGetPoolSize()
getPoolSize returns number of started workers. |
void |
testInterruptedSubmit()
submit(callable).get() throws InterruptedException if interrupted |
void |
testInvokeAll1()
invokeAll(null) throws NullPointerException |
void |
testInvokeAll2()
invokeAll(empty collection) returns empty collection |
void |
testInvokeAll3()
invokeAll(c) throws NullPointerException if c has null elements |
void |
testInvokeAll4()
get of returned element of invokeAll(c) throws ExecutionException on failed task |
void |
testInvokeAll5()
invokeAll(c) returns results of all completed tasks in c |
void |
testInvokeAny1()
invokeAny(null) throws NullPointerException |
void |
testInvokeAny2()
invokeAny(empty collection) throws IllegalArgumentException |
void |
testInvokeAny3()
invokeAny(c) throws NullPointerException if c has a single null element |
void |
testInvokeAny4()
invokeAny(c) throws NullPointerException if c has null elements |
void |
testInvokeAny5()
invokeAny(c) throws ExecutionException if no task in c completes |
void |
testInvokeAny6()
invokeAny(c) returns result of some task in c if at least one completes |
void |
testisQuiescent()
After invoking a single task, isQuiescent is true, queues are empty, threads are not active, and construction parameters continue to hold |
void |
testPollSubmission()
pollSubmission returns unexecuted submitted task, if present |
void |
testSetUncaughtExceptionHandler()
setUncaughtExceptionHandler changes handler for uncaught exceptions. |
void |
testSubmitAfterShutdown()
A task submitted after shutdown is rejected |
void |
testSubmitCallable()
Completed submit(callable) returns result |
void |
testSubmitEE()
get of submit(callable) throws ExecutionException if callable throws exception |
void |
testSubmitFailedPrivilegedExceptionAction()
A submitted failed privileged exception action reports exception |
void |
testSubmitForkJoinTask()
Completed submit(ForkJoinTask) returns result |
void |
testSubmitNullCallable()
submit(null callable) throws NullPointerException |
void |
testSubmitPrivilegedAction()
A submitted privileged action runs to completion |
void |
testSubmitPrivilegedExceptionAction()
A submitted privileged exception action runs to completion |
void |
testSubmitRunnable()
Completed submit(runnable) returns successfully |
void |
testSubmitRunnable2()
Completed submit(runnable, result) returns result |
void |
testTimedInvokeAll1()
timed invokeAll(null) throws NullPointerException |
void |
testTimedInvokeAll2()
timed invokeAll(empty collection) returns empty collection |
void |
testTimedInvokeAll3()
timed invokeAll(c) throws NullPointerException if c has null elements |
void |
testTimedInvokeAll4()
get of returned element of invokeAll(c) throws exception on failed task |
void |
testTimedInvokeAll5()
timed invokeAll(c) returns results of all completed tasks in c |
void |
testTimedInvokeAllNullTimeUnit()
timed invokeAll(null time unit) throws NullPointerException |
void |
testTimedInvokeAny1()
timed invokeAny(null) throws NullPointerException |
void |
testTimedInvokeAny2()
timed invokeAny(empty collection) throws IllegalArgumentException |
void |
testTimedInvokeAny3()
timed invokeAny(c) throws NullPointerException if c has null elements |
void |
testTimedInvokeAny4()
timed invokeAny(c) throws ExecutionException if no task completes |
void |
testTimedInvokeAny5()
timed invokeAny(c) returns result of some task in c |
void |
testTimedInvokeAnyNullTimeUnit()
timed invokeAny(null time unit) throws NullPointerException |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForkJoinPoolTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testDefaultInitialState()
public void testConstructor1()
public void testConstructor2()
public void testGetParallelism()
public void testGetPoolSize()
public void testSetUncaughtExceptionHandler()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testisQuiescent()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSubmitForkJoinTask()
throws java.lang.Throwable
java.lang.Throwablepublic void testSubmitAfterShutdown()
public void testBlockingForkJoinTask()
throws java.lang.Throwable
java.lang.Throwablepublic void testPollSubmission()
public void testDrainTasksTo()
public void testExecuteRunnable()
throws java.lang.Throwable
java.lang.Throwable
public void testSubmitCallable()
throws java.lang.Throwable
java.lang.Throwable
public void testSubmitRunnable()
throws java.lang.Throwable
java.lang.Throwable
public void testSubmitRunnable2()
throws java.lang.Throwable
java.lang.Throwable
public void testSubmitPrivilegedAction()
throws java.lang.Exception
java.lang.Exception
public void testSubmitPrivilegedExceptionAction()
throws java.lang.Exception
java.lang.Exception
public void testSubmitFailedPrivilegedExceptionAction()
throws java.lang.Exception
java.lang.Exceptionpublic void testExecuteNullRunnable()
public void testSubmitNullCallable()
public void testInterruptedSubmit()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSubmitEE()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny1()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny2()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny3()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny4()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny5()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAny6()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAll1()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAll2()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testInvokeAll3()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testInvokeAll4()
throws java.lang.Throwable
java.lang.Throwable
public void testInvokeAll5()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAny1()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAnyNullTimeUnit()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAny2()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAny3()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAny4()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAny5()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAll1()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAllNullTimeUnit()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAll2()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedInvokeAll3()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedInvokeAll4()
throws java.lang.Throwable
java.lang.Throwable
public void testTimedInvokeAll5()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||