|
||||||||
| 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
ExecutorsTest
public class ExecutorsTest
| 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 | |
|---|---|
ExecutorsTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
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 |
| 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 ExecutorsTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
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 java.lang.Exception
java.lang.Exception
public void testnewScheduledThreadPool()
throws java.lang.Exception
java.lang.Exception
public void testunconfigurableScheduledExecutorService()
throws java.lang.Exception
java.lang.Exception
public void testTimedCallable()
throws java.lang.Exception
java.lang.Exception
public void testDefaultThreadFactory()
throws java.lang.Exception
java.lang.Exception
public void testPrivilegedThreadFactory()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreatePrivilegedCallableUsingCCLWithNoPrivs()
public void testprivilegedCallableUsingCCLWithPrivs()
throws java.lang.Exception
java.lang.Exception
public void testprivilegedCallableWithNoPrivs()
throws java.lang.Exception
java.lang.Exception
public void testprivilegedCallableWithPrivs()
throws java.lang.Exception
java.lang.Exception
public void testCallable1()
throws java.lang.Exception
java.lang.Exception
public void testCallable2()
throws java.lang.Exception
java.lang.Exception
public void testCallable3()
throws java.lang.Exception
java.lang.Exception
public void testCallable4()
throws java.lang.Exception
java.lang.Exceptionpublic void testCallableNPE1()
public void testCallableNPE2()
public void testCallableNPE3()
public void testCallableNPE4()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||