}
private TestResult runTestMethodInternal(String className, String methodName) {
TestResult result = new TestResult();
try {
TestRunner runner = mockTestRunner;
if (runner == null) {
runner = TestRunners.getTestRunner(getClass().getClassLoader());
}
log.debugf("Load test class: %s", className);
Class<?> testClass = testClassLoader.loadTestClass(className);
log.debugf("Test class loaded from: %s", testClass.getClassLoader());
log.debugf("Execute: %s.%s", testClass, methodName);
result = runner.execute(testClass, methodName);
} catch (Throwable th) {
result.setStatus(Status.FAILED);
result.setEnd(System.currentTimeMillis());
result.setThrowable(th);
}