|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.sal.core.executor.TestThreadLocalDelegateExecutorService
public class TestThreadLocalDelegateExecutorService
Test that ThreadLocalDelegateExecutorService correctly wraps callables and runnables passed to it before passing them off to its delegate, by checking the thread-local context in the call or run method. Also, test that the thread-local context doesn't get set to something else on return.
| Constructor Summary | |
|---|---|
TestThreadLocalDelegateExecutorService()
|
|
| Method Summary | |
|---|---|
void |
testExecute()
|
void |
testInvokeAll()
|
void |
testInvokeAllWithTimeout()
|
void |
testInvokeAny()
|
void |
testInvokeAnyWithTimeout()
|
void |
testSubmitCallable()
|
void |
testSubmitRunnable()
|
void |
testSubmitRunnableWithResult()
|
| Methods inherited from class junit.framework.TestCase |
|---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestThreadLocalDelegateExecutorService()
| Method Detail |
|---|
public void testSubmitCallable()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testSubmitRunnableWithResult()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testSubmitRunnable()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testInvokeAll()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testInvokeAllWithTimeout()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testInvokeAny()
throws ExecutionException,
InterruptedException
ExecutionException
InterruptedException
public void testInvokeAnyWithTimeout()
throws ExecutionException,
InterruptedException,
TimeoutException
ExecutionException
InterruptedException
TimeoutException
public void testExecute()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||