iocClientTestCase.setName(method.getName());
JUnitShell.runTest(iocClientTestCase, result);
}
}
catch (GenerationException e) {
notifier.fireTestFailure(new Failure(description, e));
}
catch (InvocationTargetException e) {
notifier.fireTestFailure(new Failure(description, e.getTargetException()));
return;
}
catch (Throwable e) {
notifier.fireTestFailure(new Failure(description, e));
return;
}
notifier.fireTestRunFinished(new Result());
if (!result.wasSuccessful()) {
notifier.fireTestFailure(new Failure(description, null));
}
else {
notifier.fireTestFinished(description);
}
}