org.jcoderz.commons
Interface CommonsTestRunnerSessionInterface

All Known Subinterfaces:
CommonsTestRunnerSession
All Known Implementing Classes:
CommonsTestRunnerSessionBean, CommonsTestRunnerSessionImpl, CommonsTestRunnerSessionSession

public interface CommonsTestRunnerSessionInterface

Session bean for running JUnit tests inside a server. Don't call this yourself, but implement a subclasses of ServerTestCase which will use this to run itself inside the server.

Author:
Michael Griffel

Method Summary
 void runTest(String testClassName, String testMethodName)
          Runs a test case inside a server.
 void runTestWithTx(String testClassName, String testMethodName)
          Runs a test case inside a server with a new container-managed transaction.
 

Method Detail

runTest

void runTest(String testClassName,
             String testMethodName)
             throws RemoteException,
                    CommonsTestRunnerException
Runs a test case inside a server. We send the names instead of the test case to avoid serialization of the test case.

Parameters:
testClassName - the name of the test class, an instance of ServerTestCase
testMethodName - the name of the test method to run
Throws:
RemoteException - in case on an remote error.
CommonsTestRunnerException - that wraps any java.lang.Throwable thrown by the test method.

runTestWithTx

void runTestWithTx(String testClassName,
                   String testMethodName)
                   throws RemoteException,
                          CommonsTestRunnerException
Runs a test case inside a server with a new container-managed transaction. We send the names instead of the test case to avoid serialization of the test case.

Parameters:
testClassName - the name of the test class, an instance of ServerTestCase
testMethodName - the name of the test method to run
Throws:
RemoteException - in case on an remote error.
CommonsTestRunnerException - that wraps any java.lang.Throwable thrown by the test method.


Copyright 2007 The jCoderZ Project.