|
||||||||
| 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
RecursiveTaskTest
public class RecursiveTaskTest
| Nested Class Summary | |
|---|---|
static class |
RecursiveTaskTest.FJException
|
| 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 | |
|---|---|
RecursiveTaskTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testAbnormalForkGet()
get of a forked task throws exception when task completes abnormally |
void |
testAbnormalForkJoin()
join of a forked task throws exception when task completes abnormally |
void |
testAbnormalForkQuietlyJoin()
quietlyJoin of a forked task returns when task completes abnormally |
void |
testAbnormalForkTimedGet()
timed get of a forked task throws exception when task completes abnormally |
void |
testAbnormalInvoke()
invoke task throws exception when task completes abnormally |
void |
testAbnormalInvokeAll1()
invokeAll(tasks) with 1 argument throws exception if task does |
void |
testAbnormalInvokeAll2()
invokeAll(t1, t2) throw exception if any task does |
void |
testAbnormalInvokeAll3()
invokeAll(tasks) with > 2 argument throws exception if any task does |
void |
testAbnormalInvokeAllCollection()
invokeAll(collection) throws exception if any task does |
void |
testAbnormalQuietlyInvoke()
quietlyInvoke task returns when task completes abnormally |
void |
testCancelledForkGet()
get of a forked task throws exception when task cancelled |
void |
testCancelledForkJoin()
join of a forked task throws exception when task cancelled |
void |
testCancelledForkQuietlyJoin()
quietlyJoin of a forked task returns when task cancelled |
void |
testCancelledForkTimedGet()
timed get of a forked task throws exception when task cancelled |
void |
testCancelledInvoke()
invoke task throws exception when task cancelled |
void |
testComplete()
invoke task suppresses execution invoking complete |
void |
testCompleteExceptionally()
invoke task throws exception after invoking completeExceptionally |
void |
testForkGet()
get of a forked task returns when task completes |
void |
testForkHelpQuiesce()
helpQuiesce returns when tasks are complete. |
void |
testForkJoin()
join of a forked task returns when task completes |
void |
testForkQuietlyJoin()
quietlyJoin of a forked task returns when task completes |
void |
testForkTimedGet()
timed get of a forked task returns when task completes |
void |
testGetPool()
getPool of executing task returns its pool |
void |
testGetPool2()
getPool of non-FJ task returns null |
void |
testGetSurplusQueuedTaskCount()
getSurplusQueuedTaskCount returns > 0 when there are more tasks than threads |
void |
testInForkJoinPool()
inForkJoinPool of executing task returns true |
void |
testInForkJoinPool2()
inForkJoinPool of non-FJ task returns false |
void |
testInvoke()
invoke returns value when task completes normally. |
void |
testInvokeAll1()
invokeAll(tasks) with 1 argument invokes task |
void |
testInvokeAll2()
invokeAll(t1, t2) invokes all task arguments |
void |
testInvokeAll3()
invokeAll(tasks) with > 2 argument invokes tasks |
void |
testInvokeAllCollection()
invokeAll(collection) invokes all tasks in the collection |
void |
testInvokeAllNPE()
invokeAll(tasks) with any null task throws NPE |
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 |
testPollTask()
pollTask returns an unexecuted task without executing it |
void |
testPollTaskAsync()
pollTask returns an unexecuted task without executing it, in async mode |
void |
testQuietlyInvoke()
quietlyInvoke task returns when task completes normally. |
void |
testReinitialize()
A reinitialized normally completed task may be re-invoked |
void |
testReinitializeAbnormal()
A reinitialized abnormally completed task may be re-invoked |
void |
testSetRawResult()
The value set by setRawResult is returned by getRawResult |
void |
testTryUnfork()
tryUnfork returns true for most recent unexecuted task, and suppresses execution |
| 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 RecursiveTaskTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testInvoke()
public void testQuietlyInvoke()
public void testForkJoin()
public void testForkGet()
public void testForkTimedGet()
public void testForkQuietlyJoin()
public void testForkHelpQuiesce()
public void testAbnormalInvoke()
public void testAbnormalQuietlyInvoke()
public void testAbnormalForkJoin()
public void testAbnormalForkGet()
public void testAbnormalForkTimedGet()
public void testAbnormalForkQuietlyJoin()
public void testCancelledInvoke()
public void testCancelledForkJoin()
public void testCancelledForkGet()
public void testCancelledForkTimedGet()
public void testCancelledForkQuietlyJoin()
public void testGetPool()
public void testGetPool2()
public void testInForkJoinPool()
public void testInForkJoinPool2()
public void testSetRawResult()
public void testReinitialize()
public void testReinitializeAbnormal()
public void testCompleteExceptionally()
public void testComplete()
public void testInvokeAll2()
public void testInvokeAll1()
public void testInvokeAll3()
public void testInvokeAllCollection()
public void testInvokeAllNPE()
public void testAbnormalInvokeAll2()
public void testAbnormalInvokeAll1()
public void testAbnormalInvokeAll3()
public void testAbnormalInvokeAllCollection()
public void testTryUnfork()
public void testGetSurplusQueuedTaskCount()
public void testPeekNextLocalTask()
public void testPollNextLocalTask()
public void testPollTask()
public void testPeekNextLocalTaskAsync()
public void testPollNextLocalTaskAsync()
public void testPollTaskAsync()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||