* The "main" method of the test-case.
* @throws Exception in case an error occurs
*/
public void doTest() throws Exception
{
EJBTestResult result = null;
try
{
// Create an instance of the test class
AbstractCactusTestCase testInstance =
getTestClassInstance(getTestClassName(), getTestMethodName());
LOGGER.debug("CLASS NAME " + getTestClassName());
LOGGER.debug("METHOD NAME " + getTestMethodName());
// Set its fields (implicit objects)
setTestCaseFields(testInstance);
// Call it's method corresponding to the current test case
testInstance.runBareServer();
// Return an instance of <code>WebTestResult</code> with a
// positive result.
result = new EJBTestResult();
}
catch (Throwable e)
{
// An error occurred, return an instance of
// <code>WebTestResult</code> with an exception.
result = new EJBTestResult(e);
}
LOGGER.info("***********************************************");
LOGGER.info("Test result : [" + result + "]");
LOGGER.info("***********************************************");
}