Class ThreadPoolExecutorSubclassTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by JSR166TestCase
              extended by ThreadPoolExecutorSubclassTest
All Implemented Interfaces:
junit.framework.Test

public class ThreadPoolExecutorSubclassTest
extends JSR166TestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class 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
 
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
ThreadPoolExecutorSubclassTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testAllowCoreThreadTimeOut_false()
          allowCoreThreadTimeOut(false) causes idle threads not to time out
 void testAllowCoreThreadTimeOut_true()
          allowCoreThreadTimeOut(true) causes idle threads to time out
 void testAllowsCoreThreadTimeOut()
          allowsCoreThreadTimeOut is by default false.
 void testBeforeAfter()
          beforeExecute and afterExecute are called when executing task
 void testCallerRunsOnShutdown()
          execute using CallerRunsPolicy drops task on shutdown
 void testConstructor1()
          Constructor throws if corePoolSize argument is less than zero
 void testConstructor10()
          Constructor throws if corePoolSize is greater than the maximumPoolSize
 void testConstructor11()
          Constructor throws if corePoolSize argument is less than zero
 void testConstructor12()
          Constructor throws if maximumPoolSize is less than zero
 void testConstructor13()
          Constructor throws if maximumPoolSize is equal to zero
 void testConstructor14()
          Constructor throws if keepAliveTime is less than zero
 void testConstructor15()
          Constructor throws if corePoolSize is greater than the maximumPoolSize
 void testConstructor16()
          Constructor throws if corePoolSize argument is less than zero
 void testConstructor17()
          Constructor throws if maximumPoolSize is less than zero
 void testConstructor18()
          Constructor throws if maximumPoolSize is equal to zero
 void testConstructor19()
          Constructor throws if keepAliveTime is less than zero
 void testConstructor2()
          Constructor throws if maximumPoolSize is less than zero
 void testConstructor20()
          Constructor throws if corePoolSize is greater than the maximumPoolSize
 void testConstructor3()
          Constructor throws if maximumPoolSize is equal to zero
 void testConstructor4()
          Constructor throws if keepAliveTime is less than zero
 void testConstructor5()
          Constructor throws if corePoolSize is greater than the maximumPoolSize
 void testConstructor6()
          Constructor throws if corePoolSize argument is less than zero
 void testConstructor7()
          Constructor throws if maximumPoolSize is less than zero
 void testConstructor8()
          Constructor throws if maximumPoolSize is equal to zero
 void testConstructor9()
          Constructor throws if keepAliveTime is less than zero
 void testConstructorNullPointerException()
          Constructor throws if workQueue is set to null
 void testConstructorNullPointerException2()
          Constructor throws if workQueue is set to null
 void testConstructorNullPointerException3()
          Constructor throws if threadFactory is set to null
 void testConstructorNullPointerException4()
          Constructor throws if workQueue is set to null
 void testConstructorNullPointerException5()
          Constructor throws if handler is set to null
 void testConstructorNullPointerException6()
          Constructor throws if workQueue is null
 void testConstructorNullPointerException7()
          Constructor throws if handler is null
 void testConstructorNullPointerException8()
          Constructor throws if ThreadFactory is null
 void testCorePoolSizeIllegalArgumentException()
          setCorePoolSize of negative value throws IllegalArgumentException
 void testDiscardOldestOnShutdown()
          execute using DiscardOldestPolicy drops task on shutdown
 void testDiscardOnShutdown()
          execute using DiscardPolicy drops task on shutdown
 void testExecute()
          execute successfully executes a runnable
 void testExecuteNull()
          execute(null) throws NPE
 void testFailingThreadFactory()
          Execution continues if there is at least one thread even if thread factory fails to create more
 void testGetActiveCount()
          getActiveCount increases but doesn't overestimate, when a thread becomes active
 void testGetCompletedTaskCount()
          getCompletedTaskCount increases, but doesn't overestimate, when tasks complete
 void testGetCorePoolSize()
          getCorePoolSize returns size given in constructor if not otherwise set
 void testGetKeepAliveTime()
          getKeepAliveTime returns value given in constructor if not otherwise set
 void testGetLargestPoolSize()
          getLargestPoolSize increases, but doesn't overestimate, when multiple threads active
 void testGetMaximumPoolSize()
          getMaximumPoolSize returns value given in constructor if not otherwise set
 void testGetPoolSize()
          getPoolSize increases, but doesn't overestimate, when threads become active
 void testGetQueue()
          getQueue returns the work queue, which contains queued tasks
 void testGetRejectedExecutionHandler()
          getRejectedExecutionHandler returns handler in constructor if not set
 void testGetTaskCount()
          getTaskCount increases, but doesn't overestimate, when tasks submitted
 void testGetThreadFactory()
          getThreadFactory returns factory in constructor if not set
 void testInvokeAll1()
          invokeAll(null) throws NPE
 void testInvokeAll2()
          invokeAll(empty collection) returns empty collection
 void testInvokeAll3()
          invokeAll(c) throws NPE if c has null elements
 void testInvokeAll4()
          get of element of invokeAll(c) throws exception on failed task
 void testInvokeAll5()
          invokeAll(c) returns results of all completed tasks
 void testInvokeAny1()
          invokeAny(null) throws NPE
 void testInvokeAny2()
          invokeAny(empty collection) throws IAE
 void testInvokeAny3()
          invokeAny(c) throws NPE if c has null elements
 void testInvokeAny4()
          invokeAny(c) throws ExecutionException if no task completes
 void testInvokeAny5()
          invokeAny(c) returns result of some task
 void testIsShutdown()
          isShutdown is false before shutdown, true after
 void testIsTerminated()
          isTerminated is false before termination, true after
 void testIsTerminating()
          isTerminating is not true when running or when terminated
 void testKeepAliveTimeIllegalArgumentException()
          setKeepAliveTime throws IllegalArgumentException when given a negative value
 void testMaximumPoolSizeIllegalArgumentException()
          setMaximumPoolSize(int) throws IllegalArgumentException if given a value less the core pool size
 void testMaximumPoolSizeIllegalArgumentException2()
          setMaximumPoolSize throws IllegalArgumentException if given a negative value
 void testPrestartAllCoreThreads()
          prestartAllCoreThreads starts all corePoolSize threads
 void testPrestartCoreThread()
          prestartCoreThread starts a thread if under corePoolSize, else doesn't
 void testPurge()
          purge removes cancelled tasks from the queue
 void testRejectedExecutionExceptionOnShutdown()
          execute throws RejectedExecutionException if shutdown
 void testRemove()
          remove(task) removes queued task, and fails to remove active task
 void testSaturatedExecute()
          execute throws RejectedExecutionException if saturated.
 void testSaturatedExecute2()
          executor using CallerRunsPolicy runs task if saturated.
 void testSaturatedExecute3()
          executor using DiscardPolicy drops task if saturated.
 void testSaturatedExecute4()
          executor using DiscardOldestPolicy drops oldest task if saturated.
 void testSetRejectedExecutionHandler()
          setRejectedExecutionHandler sets the handler returned by getRejectedExecutionHandler
 void testSetRejectedExecutionHandlerNull()
          setRejectedExecutionHandler(null) throws NPE
 void testSetThreadFactory()
          setThreadFactory sets the thread factory returned by getThreadFactory
 void testSetThreadFactoryNull()
          setThreadFactory(null) throws NPE
 void testShutdownNow()
          shutdownNow returns a list containing tasks that were not run
 void testSubmitCallable()
          completed submit of callable returns result
 void testSubmitRunnable()
          completed submit of runnable returns successfully
 void testSubmitRunnable2()
          completed submit of (runnable, result) returns result
 void testTerminated()
          terminated() is called on termination
 void testTimedInvokeAll1()
          timed invokeAll(null) throws NPE
 void testTimedInvokeAll2()
          timed invokeAll(empty collection) returns empty collection
 void testTimedInvokeAll3()
          timed invokeAll(c) throws NPE if c has null elements
 void testTimedInvokeAll4()
          get of element of invokeAll(c) throws exception on failed task
 void testTimedInvokeAll5()
          timed invokeAll(c) returns results of all completed tasks
 void testTimedInvokeAll6()
          timed invokeAll(c) cancels tasks not completed by timeout
 void testTimedInvokeAllNullTimeUnit()
          timed invokeAll(,,null) throws NPE
 void testTimedInvokeAny1()
          timed invokeAny(null) throws NPE
 void testTimedInvokeAny2()
          timed invokeAny(empty collection) throws IAE
 void testTimedInvokeAny3()
          timed invokeAny(c) throws NPE 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
 void testTimedInvokeAnyNullTimeUnit()
          timed invokeAny(,,null) throws NPE
 
Methods inherited from class JSR166TestCase
assertThreadJoinTimesOut, awaiter, checkEmpty, delay, getShortDelay, joinPool, latchAwaitingStringTask, newTestSuite, permissivePolicy, possiblyInterruptedRunnable, runTest, runTestProfiled, runWithoutPermissions, runWithPermissions, setDelays, setUp, shouldThrow, shouldThrow, tearDown, threadAssertEquals, threadAssertEquals, threadAssertFalse, threadAssertNull, threadAssertSame, threadAssertTrue, threadFail, threadRecordFailure, threadShouldThrow, threadShouldThrow, threadUnexpectedException, trackedRunnable
 
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

ThreadPoolExecutorSubclassTest

public ThreadPoolExecutorSubclassTest()
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

testExecute

public void testExecute()
                 throws java.lang.InterruptedException
execute successfully executes a runnable

Throws:
java.lang.InterruptedException

testGetActiveCount

public void testGetActiveCount()
                        throws java.lang.InterruptedException
getActiveCount increases but doesn't overestimate, when a thread becomes active

Throws:
java.lang.InterruptedException

testPrestartCoreThread

public void testPrestartCoreThread()
prestartCoreThread starts a thread if under corePoolSize, else doesn't


testPrestartAllCoreThreads

public void testPrestartAllCoreThreads()
prestartAllCoreThreads starts all corePoolSize threads


testGetCompletedTaskCount

public void testGetCompletedTaskCount()
                               throws java.lang.InterruptedException
getCompletedTaskCount increases, but doesn't overestimate, when tasks complete

Throws:
java.lang.InterruptedException

testGetCorePoolSize

public void testGetCorePoolSize()
getCorePoolSize returns size given in constructor if not otherwise set


testGetKeepAliveTime

public void testGetKeepAliveTime()
getKeepAliveTime returns value given in constructor if not otherwise set


testGetThreadFactory

public void testGetThreadFactory()
getThreadFactory returns factory in constructor if not set


testSetThreadFactory

public void testSetThreadFactory()
setThreadFactory sets the thread factory returned by getThreadFactory


testSetThreadFactoryNull

public void testSetThreadFactoryNull()
setThreadFactory(null) throws NPE


testGetRejectedExecutionHandler

public void testGetRejectedExecutionHandler()
getRejectedExecutionHandler returns handler in constructor if not set


testSetRejectedExecutionHandler

public void testSetRejectedExecutionHandler()
setRejectedExecutionHandler sets the handler returned by getRejectedExecutionHandler


testSetRejectedExecutionHandlerNull

public void testSetRejectedExecutionHandlerNull()
setRejectedExecutionHandler(null) throws NPE


testGetLargestPoolSize

public void testGetLargestPoolSize()
                            throws java.lang.InterruptedException
getLargestPoolSize increases, but doesn't overestimate, when multiple threads active

Throws:
java.lang.InterruptedException

testGetMaximumPoolSize

public void testGetMaximumPoolSize()
getMaximumPoolSize returns value given in constructor if not otherwise set


testGetPoolSize

public void testGetPoolSize()
                     throws java.lang.InterruptedException
getPoolSize increases, but doesn't overestimate, when threads become active

Throws:
java.lang.InterruptedException

testGetTaskCount

public void testGetTaskCount()
                      throws java.lang.InterruptedException
getTaskCount increases, but doesn't overestimate, when tasks submitted

Throws:
java.lang.InterruptedException

testIsShutdown

public void testIsShutdown()
isShutdown is false before shutdown, true after


testIsTerminated

public void testIsTerminated()
                      throws java.lang.InterruptedException
isTerminated is false before termination, true after

Throws:
java.lang.InterruptedException

testIsTerminating

public void testIsTerminating()
                       throws java.lang.InterruptedException
isTerminating is not true when running or when terminated

Throws:
java.lang.InterruptedException

testGetQueue

public void testGetQueue()
                  throws java.lang.InterruptedException
getQueue returns the work queue, which contains queued tasks

Throws:
java.lang.InterruptedException

testRemove

public void testRemove()
                throws java.lang.InterruptedException
remove(task) removes queued task, and fails to remove active task

Throws:
java.lang.InterruptedException

testPurge

public void testPurge()
               throws java.lang.InterruptedException
purge removes cancelled tasks from the queue

Throws:
java.lang.InterruptedException

testShutdownNow

public void testShutdownNow()
shutdownNow returns a list containing tasks that were not run


testConstructor1

public void testConstructor1()
Constructor throws if corePoolSize argument is less than zero


testConstructor2

public void testConstructor2()
Constructor throws if maximumPoolSize is less than zero


testConstructor3

public void testConstructor3()
Constructor throws if maximumPoolSize is equal to zero


testConstructor4

public void testConstructor4()
Constructor throws if keepAliveTime is less than zero


testConstructor5

public void testConstructor5()
Constructor throws if corePoolSize is greater than the maximumPoolSize


testConstructorNullPointerException

public void testConstructorNullPointerException()
Constructor throws if workQueue is set to null


testConstructor6

public void testConstructor6()
Constructor throws if corePoolSize argument is less than zero


testConstructor7

public void testConstructor7()
Constructor throws if maximumPoolSize is less than zero


testConstructor8

public void testConstructor8()
Constructor throws if maximumPoolSize is equal to zero


testConstructor9

public void testConstructor9()
Constructor throws if keepAliveTime is less than zero


testConstructor10

public void testConstructor10()
Constructor throws if corePoolSize is greater than the maximumPoolSize


testConstructorNullPointerException2

public void testConstructorNullPointerException2()
Constructor throws if workQueue is set to null


testConstructorNullPointerException3

public void testConstructorNullPointerException3()
Constructor throws if threadFactory is set to null


testConstructor11

public void testConstructor11()
Constructor throws if corePoolSize argument is less than zero


testConstructor12

public void testConstructor12()
Constructor throws if maximumPoolSize is less than zero


testConstructor13

public void testConstructor13()
Constructor throws if maximumPoolSize is equal to zero


testConstructor14

public void testConstructor14()
Constructor throws if keepAliveTime is less than zero


testConstructor15

public void testConstructor15()
Constructor throws if corePoolSize is greater than the maximumPoolSize


testConstructorNullPointerException4

public void testConstructorNullPointerException4()
Constructor throws if workQueue is set to null


testConstructorNullPointerException5

public void testConstructorNullPointerException5()
Constructor throws if handler is set to null


testConstructor16

public void testConstructor16()
Constructor throws if corePoolSize argument is less than zero


testConstructor17

public void testConstructor17()
Constructor throws if maximumPoolSize is less than zero


testConstructor18

public void testConstructor18()
Constructor throws if maximumPoolSize is equal to zero


testConstructor19

public void testConstructor19()
Constructor throws if keepAliveTime is less than zero


testConstructor20

public void testConstructor20()
Constructor throws if corePoolSize is greater than the maximumPoolSize


testConstructorNullPointerException6

public void testConstructorNullPointerException6()
Constructor throws if workQueue is null


testConstructorNullPointerException7

public void testConstructorNullPointerException7()
Constructor throws if handler is null


testConstructorNullPointerException8

public void testConstructorNullPointerException8()
Constructor throws if ThreadFactory is null


testSaturatedExecute

public void testSaturatedExecute()
execute throws RejectedExecutionException if saturated.


testSaturatedExecute2

public void testSaturatedExecute2()
executor using CallerRunsPolicy runs task if saturated.


testSaturatedExecute3

public void testSaturatedExecute3()
executor using DiscardPolicy drops task if saturated.


testSaturatedExecute4

public void testSaturatedExecute4()
executor using DiscardOldestPolicy drops oldest task if saturated.


testRejectedExecutionExceptionOnShutdown

public void testRejectedExecutionExceptionOnShutdown()
execute throws RejectedExecutionException if shutdown


testCallerRunsOnShutdown

public void testCallerRunsOnShutdown()
execute using CallerRunsPolicy drops task on shutdown


testDiscardOnShutdown

public void testDiscardOnShutdown()
execute using DiscardPolicy drops task on shutdown


testDiscardOldestOnShutdown

public void testDiscardOldestOnShutdown()
execute using DiscardOldestPolicy drops task on shutdown


testExecuteNull

public void testExecuteNull()
execute(null) throws NPE


testCorePoolSizeIllegalArgumentException

public void testCorePoolSizeIllegalArgumentException()
setCorePoolSize of negative value throws IllegalArgumentException


testMaximumPoolSizeIllegalArgumentException

public void testMaximumPoolSizeIllegalArgumentException()
setMaximumPoolSize(int) throws IllegalArgumentException if given a value less the core pool size


testMaximumPoolSizeIllegalArgumentException2

public void testMaximumPoolSizeIllegalArgumentException2()
setMaximumPoolSize throws IllegalArgumentException if given a negative value


testKeepAliveTimeIllegalArgumentException

public void testKeepAliveTimeIllegalArgumentException()
setKeepAliveTime throws IllegalArgumentException when given a negative value


testTerminated

public void testTerminated()
terminated() is called on termination


testBeforeAfter

public void testBeforeAfter()
                     throws java.lang.InterruptedException
beforeExecute and afterExecute are called when executing task

Throws:
java.lang.InterruptedException

testSubmitCallable

public void testSubmitCallable()
                        throws java.lang.Exception
completed submit of callable returns result

Throws:
java.lang.Exception

testSubmitRunnable

public void testSubmitRunnable()
                        throws java.lang.Exception
completed submit of runnable returns successfully

Throws:
java.lang.Exception

testSubmitRunnable2

public void testSubmitRunnable2()
                         throws java.lang.Exception
completed submit of (runnable, result) returns result

Throws:
java.lang.Exception

testInvokeAny1

public void testInvokeAny1()
                    throws java.lang.Exception
invokeAny(null) throws NPE

Throws:
java.lang.Exception

testInvokeAny2

public void testInvokeAny2()
                    throws java.lang.Exception
invokeAny(empty collection) throws IAE

Throws:
java.lang.Exception

testInvokeAny3

public void testInvokeAny3()
                    throws java.lang.Exception
invokeAny(c) throws NPE if c has null elements

Throws:
java.lang.Exception

testInvokeAny4

public void testInvokeAny4()
                    throws java.lang.Exception
invokeAny(c) throws ExecutionException if no task completes

Throws:
java.lang.Exception

testInvokeAny5

public void testInvokeAny5()
                    throws java.lang.Exception
invokeAny(c) returns result of some task

Throws:
java.lang.Exception

testInvokeAll1

public void testInvokeAll1()
                    throws java.lang.Exception
invokeAll(null) throws NPE

Throws:
java.lang.Exception

testInvokeAll2

public void testInvokeAll2()
                    throws java.lang.Exception
invokeAll(empty collection) returns empty collection

Throws:
java.lang.Exception

testInvokeAll3

public void testInvokeAll3()
                    throws java.lang.Exception
invokeAll(c) throws NPE if c has null elements

Throws:
java.lang.Exception

testInvokeAll4

public void testInvokeAll4()
                    throws java.lang.Exception
get of element of invokeAll(c) throws exception on failed task

Throws:
java.lang.Exception

testInvokeAll5

public void testInvokeAll5()
                    throws java.lang.Exception
invokeAll(c) returns results of all completed tasks

Throws:
java.lang.Exception

testTimedInvokeAny1

public void testTimedInvokeAny1()
                         throws java.lang.Exception
timed invokeAny(null) throws NPE

Throws:
java.lang.Exception

testTimedInvokeAnyNullTimeUnit

public void testTimedInvokeAnyNullTimeUnit()
                                    throws java.lang.Exception
timed invokeAny(,,null) throws NPE

Throws:
java.lang.Exception

testTimedInvokeAny2

public void testTimedInvokeAny2()
                         throws java.lang.Exception
timed invokeAny(empty collection) throws IAE

Throws:
java.lang.Exception

testTimedInvokeAny3

public void testTimedInvokeAny3()
                         throws java.lang.Exception
timed invokeAny(c) throws NPE if c has null elements

Throws:
java.lang.Exception

testTimedInvokeAny4

public void testTimedInvokeAny4()
                         throws java.lang.Exception
timed invokeAny(c) throws ExecutionException if no task completes

Throws:
java.lang.Exception

testTimedInvokeAny5

public void testTimedInvokeAny5()
                         throws java.lang.Exception
timed invokeAny(c) returns result of some task

Throws:
java.lang.Exception

testTimedInvokeAll1

public void testTimedInvokeAll1()
                         throws java.lang.Exception
timed invokeAll(null) throws NPE

Throws:
java.lang.Exception

testTimedInvokeAllNullTimeUnit

public void testTimedInvokeAllNullTimeUnit()
                                    throws java.lang.Exception
timed invokeAll(,,null) throws NPE

Throws:
java.lang.Exception

testTimedInvokeAll2

public void testTimedInvokeAll2()
                         throws java.lang.Exception
timed invokeAll(empty collection) returns empty collection

Throws:
java.lang.Exception

testTimedInvokeAll3

public void testTimedInvokeAll3()
                         throws java.lang.Exception
timed invokeAll(c) throws NPE if c has null elements

Throws:
java.lang.Exception

testTimedInvokeAll4

public void testTimedInvokeAll4()
                         throws java.lang.Exception
get of element of invokeAll(c) throws exception on failed task

Throws:
java.lang.Exception

testTimedInvokeAll5

public void testTimedInvokeAll5()
                         throws java.lang.Exception
timed invokeAll(c) returns results of all completed tasks

Throws:
java.lang.Exception

testTimedInvokeAll6

public void testTimedInvokeAll6()
                         throws java.lang.Exception
timed invokeAll(c) cancels tasks not completed by timeout

Throws:
java.lang.Exception

testFailingThreadFactory

public void testFailingThreadFactory()
                              throws java.lang.InterruptedException
Execution continues if there is at least one thread even if thread factory fails to create more

Throws:
java.lang.InterruptedException

testAllowsCoreThreadTimeOut

public void testAllowsCoreThreadTimeOut()
allowsCoreThreadTimeOut is by default false.


testAllowCoreThreadTimeOut_true

public void testAllowCoreThreadTimeOut_true()
                                     throws java.lang.Exception
allowCoreThreadTimeOut(true) causes idle threads to time out

Throws:
java.lang.Exception

testAllowCoreThreadTimeOut_false

public void testAllowCoreThreadTimeOut_false()
                                      throws java.lang.Exception
allowCoreThreadTimeOut(false) causes idle threads not to time out

Throws:
java.lang.Exception