*
* @exception ServletException if an unexpected error occurred
*/
public void doTest() throws ServletException
{
WebTestResult result = null;
try {
// Create an instance of the test class
AbstractTestCase testInstance = getTestClassInstance(
getTestClassName(), getTestMethodName());
// Set its fields (implicit objects)
setTestCaseFields(testInstance);
// Call it's method corresponding to the current test case
testInstance.runBareServerTest();
// Return an instance of <code>WebTestResult</code> with a
// positive result.
result = new WebTestResult();
} catch (Throwable e) {
// An error occurred, return an instance of
// <code>WebTestResult</code> with an exception.
result = new WebTestResult(e);
}
LOGGER.debug("Test result : [" + result + "]");