Class testClass = Class.forName(className);
List<Class> classes = getTestClasses(testClass, new ArrayList<Class>());
if (classes.isEmpty()) {
Description description = Description.createSuiteDescription(testClass);
xmlResultFormatter.testRunStarted(description);
xmlResultFormatter.testRunFinished(new Result());
} else {
junitcore.run(new FilterRequest(Request.classes(classes
.toArray(new Class[classes.size()])), new Filter() {
@Override