public abstract class ExecutorTest extends ExceptionEventSourceTest
Executor
implementations.Modifier and Type | Class and Description |
---|---|
static class |
ExecutorTest.ExecutionException
Exception expected to be reported.
|
static class |
ExecutorTest.TestListener
ExceptionListener providing the last reported event. |
Modifier and Type | Field and Description |
---|---|
static Runnable |
runnable
Runnable throwing ExecutionException . |
Constructor and Description |
---|
ExecutorTest() |
Modifier and Type | Method and Description |
---|---|
org.jdtaus.core.lang.ExceptionEventSource |
getExceptionEventSource()
Gets the
ExceptionEventSource implementation tests are performed
with. |
abstract Executor |
getExecutor()
Gets the
Executor implementation tests are performed with. |
void |
testNullArguments()
Tests the
Executor.executeAsynchronously(Runnable) method to
handle null arguments correctly by throwing a corresponding
NullPointerException . |
void |
testOnException()
Tests the
Executor.executeAsynchronously(Runnable) method to
report any exceptions thrown during execution. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public ExecutorTest()
public final org.jdtaus.core.lang.ExceptionEventSource getExceptionEventSource()
ExceptionEventSource
implementation tests are performed
with.getExceptionEventSource
in class ExceptionEventSourceTest
ExceptionEventSource
implementation tests are
performed with.getExecutor()
public abstract Executor getExecutor()
Executor
implementation tests are performed with.Executor
implementation tests are performed with.public void testNullArguments() throws Exception
Executor.executeAsynchronously(Runnable)
method to
handle null
arguments correctly by throwing a corresponding
NullPointerException
.testNullArguments
in class ExceptionEventSourceTest
Exception
public void testOnException() throws Exception
Executor.executeAsynchronously(Runnable)
method to
report any exceptions thrown during execution.Exception
Copyright © 2005-2012 jDTAUS. All Rights Reserved.