org.jcoderz.commons
Class CommonsTestRunnerSessionImpl

java.lang.Object
  extended by org.jcoderz.commons.CommonsTestRunnerSessionImpl
All Implemented Interfaces:
CommonsTestRunnerSessionInterface
Direct Known Subclasses:
CommonsTestRunnerSessionBean

public class CommonsTestRunnerSessionImpl
extends Object
implements CommonsTestRunnerSessionInterface

Implementation for the TestRunnerSeession bean.

Author:
Michael Griffel

Constructor Summary
CommonsTestRunnerSessionImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsTestRunnerSessionImpl

public CommonsTestRunnerSessionImpl()
Method Detail

runTest

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

Specified by:
runTest in interface CommonsTestRunnerSessionInterface
Parameters:
testClassName - the name of the test class, an instance of ServerTestCase
testMethodName - the name of the test method to run
Throws:
CommonsTestRunnerException - that wraps any java.lang.Throwable thrown by the test method.
ejb.interface-method
view-type="remote"
ejb.transaction
type="Supports"

runTestWithTx

public void runTestWithTx(String testClassName,
                          String testMethodName)
                   throws 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.

Specified by:
runTestWithTx in interface CommonsTestRunnerSessionInterface
Parameters:
testClassName - the name of the test class, an instance of ServerTestCase
testMethodName - the name of the test method to run
Throws:
CommonsTestRunnerException - that wraps any java.lang.Throwable thrown by the test method.
ejb.interface-method
view-type="remote"
ejb.transaction
type="Required"


Copyright 2007 The jCoderZ Project.