// TODO: better factoring here
public class CustomRunnerTest {
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