org.jboss.jrunit.harness
Class ServerTestHarness

java.lang.Object
  extended byorg.jboss.jrunit.harness.ServerTestHarness
All Implemented Interfaces:
MessageBusListener

public class ServerTestHarness
extends java.lang.Object
implements MessageBusListener

Author:
Tom Elrod

Field Summary
static int ABORTING_TEST
           
static int ERROR_CLEANING_TEST
           
static int ERROR_CREATING_TEST
           
static int ERROR_INITIALIZING_TEST
           
static int ERROR_RUNNING_TEST
           
static int ERROR_STARTING_HARNESS
           
static int NO_TEST_CLASS
           
 
Constructor Summary
ServerTestHarness(java.lang.String testClass, int number)
           
 
Method Summary
 void handleRemoteDataMessage(java.lang.Object message)
          Used to transfer benchmark data between VMs
 void handleRemoteTestMessage(RemoteTestMessage message)
           
static void main(java.lang.String[] args)
           
 void runTests()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_TEST_CLASS

public static final int NO_TEST_CLASS
See Also:
Constant Field Values

ERROR_STARTING_HARNESS

public static final int ERROR_STARTING_HARNESS
See Also:
Constant Field Values

ERROR_CREATING_TEST

public static final int ERROR_CREATING_TEST
See Also:
Constant Field Values

ERROR_RUNNING_TEST

public static final int ERROR_RUNNING_TEST
See Also:
Constant Field Values

ERROR_INITIALIZING_TEST

public static final int ERROR_INITIALIZING_TEST
See Also:
Constant Field Values

ERROR_CLEANING_TEST

public static final int ERROR_CLEANING_TEST
See Also:
Constant Field Values

ABORTING_TEST

public static final int ABORTING_TEST
See Also:
Constant Field Values
Constructor Detail

ServerTestHarness

public ServerTestHarness(java.lang.String testClass,
                         int number)
                  throws java.lang.Exception
Method Detail

shutdown

public void shutdown()

runTests

public void runTests()
              throws TestCreationException,
                     TestRunException,
                     TestInitializationException,
                     TestCleanupException
Throws:
TestCreationException
TestRunException
TestInitializationException
TestCleanupException

handleRemoteDataMessage

public void handleRemoteDataMessage(java.lang.Object message)
Description copied from interface: MessageBusListener
Used to transfer benchmark data between VMs

Specified by:
handleRemoteDataMessage in interface MessageBusListener

handleRemoteTestMessage

public void handleRemoteTestMessage(RemoteTestMessage message)
Specified by:
handleRemoteTestMessage in interface MessageBusListener

main

public static void main(java.lang.String[] args)


JRunit, a JUnit extension for distributed client/server tests.