public static class CustomRunner extends TestClassRunner {
public CustomRunner(Class<?> klass) throws InitializationError {
super(klass, new TestClassMethodsRunner(klass) {
@Override
protected TestMethodRunner createMethodRunner(Object test, Method method, RunNotifier notifier) {
return new TestMethodRunner(test, method, notifier,
methodDescription(method)) {
@Override
protected void executeMethodBody()
throws IllegalAccessException,
InvocationTargetException {