|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.jrunit.harness.TestDriver
Field Summary | |
static org.apache.log4j.Level |
DEFAULT_TEST_HARNESS_LOG_LEVEL
The default log level for the test harness for each test case being run. |
static org.apache.log4j.Level |
DEFAULT_TEST_LOG_LEVEL
The default log level for the test case being run. |
static long |
RESULTS_TIMEOUT
The default timeout for how long to wait for test results from test clients. |
static long |
RUN_TEST_TIMEOUT
The default timeout for how long to wait for the test cases to run. |
static long |
TEARDOWN_TIMEOUT
The default timeout for how long to wait for the server test case to wait for teardown message before timing out and throwing an exception. |
Constructor Summary | |
TestDriver()
|
Method Summary | |
abstract void |
declareTestClasses()
This method should call the addTestClasses() method with the client class to run, number of clients to run and the server class to run. |
void |
handleRemoteDataMessage(java.lang.Object message)
Used to transfer benchmark data between VMs |
void |
handleRemoteTestMessage(RemoteTestMessage message)
|
void |
memberChange(int numberOfMembers)
|
void |
run(junit.framework.TestResult result)
|
void |
setUp()
|
void |
testStart()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long RESULTS_TIMEOUT
public static final long TEARDOWN_TIMEOUT
public static final long RUN_TEST_TIMEOUT
public static final org.apache.log4j.Level DEFAULT_TEST_LOG_LEVEL
public static final org.apache.log4j.Level DEFAULT_TEST_HARNESS_LOG_LEVEL
Constructor Detail |
public TestDriver()
Method Detail |
public void setUp()
public abstract void declareTestClasses()
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
public void testStart() throws java.lang.Exception
java.lang.Exception
public void handleRemoteDataMessage(java.lang.Object message)
MessageBusListener
handleRemoteDataMessage
in interface MessageBusListener
public void handleRemoteTestMessage(RemoteTestMessage message)
handleRemoteTestMessage
in interface MessageBusListener
public void memberChange(int numberOfMembers)
memberChange
in interface RemoteMemberListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |