public class ExecutorsTest 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 |
---|
ExecutorsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testCallable1()
callable(Runnable) returns null when called
|
void |
testCallable2()
callable(Runnable, result) returns result when called
|
void |
testCallable3()
callable(PrivilegedAction) returns its result when called
|
void |
testCallable4()
callable(PrivilegedExceptionAction) returns its result when called
|
void |
testCallableNPE1()
callable(null Runnable) throws NPE
|
void |
testCallableNPE2()
callable(null, result) throws NPE
|
void |
testCallableNPE3()
callable(null PrivilegedAction) throws NPE
|
void |
testCallableNPE4()
callable(null PrivilegedExceptionAction) throws NPE
|
void |
testCastNewSingleThreadExecutor()
A new SingleThreadExecutor cannot be casted to concrete implementation
|
void |
testCreatePrivilegedCallableUsingCCLWithNoPrivs()
Without class loader permissions, creating
privilegedCallableUsingCurrentClassLoader throws ACE
|
void |
testDefaultThreadFactory()
ThreadPoolExecutor using defaultThreadFactory has
specified group, priority, daemon status, and name
|
void |
testNewCachedThreadPool1()
A newCachedThreadPool can execute runnables
|
void |
testNewCachedThreadPool2()
A newCachedThreadPool with given ThreadFactory can execute runnables
|
void |
testNewCachedThreadPool3()
A newCachedThreadPool with null ThreadFactory throws NPE
|
void |
testNewFixedThreadPool1()
A new newFixedThreadPool can execute runnables
|
void |
testNewFixedThreadPool2()
A new newFixedThreadPool with given ThreadFactory can execute runnables
|
void |
testNewFixedThreadPool3()
A new newFixedThreadPool with null ThreadFactory throws NPE
|
void |
testNewFixedThreadPool4()
A new newFixedThreadPool with 0 threads throws IAE
|
void |
testNewScheduledThreadPool()
a newScheduledThreadPool successfully runs delayed task
|
void |
testNewSingleThreadExecutor1()
A new SingleThreadExecutor can execute runnables
|
void |
testNewSingleThreadExecutor2()
A new SingleThreadExecutor with given ThreadFactory can execute runnables
|
void |
testNewSingleThreadExecutor3()
A new SingleThreadExecutor with null ThreadFactory throws NPE
|
void |
testNewSingleThreadScheduledExecutor()
a newSingleThreadScheduledExecutor successfully runs delayed task
|
void |
testPrivilegedCallableUsingCCLWithPrivs()
With class loader permissions, calling
privilegedCallableUsingCurrentClassLoader does not throw ACE
|
void |
testPrivilegedCallableWithNoPrivs()
Without permissions, calling privilegedCallable throws ACE
|
void |
testPrivilegedCallableWithPrivs()
With permissions, calling privilegedCallable succeeds
|
void |
testPrivilegedThreadFactory()
ThreadPoolExecutor using privilegedThreadFactory has
specified group, priority, daemon status, name,
access control context and context class loader
|
void |
testTimedCallable()
Future.get on submitted tasks will time out if they compute too long.
|
void |
testUnconfigurableExecutorService()
An unconfigurable newFixedThreadPool can execute runnables
|
void |
testUnconfigurableExecutorServiceNPE()
unconfigurableExecutorService(null) throws NPE
|
void |
testUnconfigurableScheduledExecutorService()
an unconfigurable newScheduledThreadPool successfully runs delayed task
|
void |
testUnconfigurableScheduledExecutorServiceNPE()
unconfigurableScheduledExecutorService(null) throws NPE
|
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 testNewCachedThreadPool1()
public void testNewCachedThreadPool2()
public void testNewCachedThreadPool3()
public void testNewSingleThreadExecutor1()
public void testNewSingleThreadExecutor2()
public void testNewSingleThreadExecutor3()
public void testCastNewSingleThreadExecutor()
public void testNewFixedThreadPool1()
public void testNewFixedThreadPool2()
public void testNewFixedThreadPool3()
public void testNewFixedThreadPool4()
public void testUnconfigurableExecutorService()
public void testUnconfigurableExecutorServiceNPE()
public void testUnconfigurableScheduledExecutorServiceNPE()
public void testNewSingleThreadScheduledExecutor() throws Exception
Exception
public void testNewScheduledThreadPool() throws Exception
Exception
public void testUnconfigurableScheduledExecutorService() throws Exception
Exception
public void testTimedCallable() throws Exception
Exception
public void testDefaultThreadFactory() throws Exception
Exception
public void testPrivilegedThreadFactory() throws Exception
Exception
public void testCreatePrivilegedCallableUsingCCLWithNoPrivs()
public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception
Exception
public void testPrivilegedCallableWithNoPrivs() throws Exception
Exception
public void testPrivilegedCallableWithPrivs() throws Exception
Exception
public void testCallable1() throws Exception
Exception
public void testCallable2() throws Exception
Exception
public void testCallable3() throws Exception
Exception
public void testCallable4() throws Exception
Exception
public void testCallableNPE1()
public void testCallableNPE2()
public void testCallableNPE3()
public void testCallableNPE4()