runTestBuilder(testClassName, methodName, testClass);
} else if (AbstractTestNGCitrusTest.class.isAssignableFrom(testClass)) {
runTest(testClassName, methodName, testClass);
}
} catch (ClassNotFoundException e) {
throw new CitrusAdminRuntimeException("Failed to execute test case as it is not part of classpath: " + packageName + "." + testClassName, e);
} catch (Exception e) {
throw new CitrusAdminRuntimeException("Failed to load Java source " + packageName + "." + testClassName, e);
} finally {
Map<String, TestReporter> reporters = applicationContextHolder.getApplicationContext().getBeansOfType(TestReporter.class);
for (TestReporter reporter : reporters.values()) {
reporter.clearTestResults();
}