public void executeTest(HttpServletResponse response, String outputMode, String className, String methodName)
throws ClassNotFoundException, IOException
{
Class<?> testClass = SecurityActions.getThreadContextClassLoader().loadClass(className);
TestRunner runner = TestRunners.getTestRunner();
TestResult testResult = runner.execute(testClass, methodName);
if(OUTPUT_MODE_SERIALIZED.equalsIgnoreCase(outputMode))
{
writeObject(testResult, response);
}
else