Java 类org.junit.internal.builders.AnnotatedBuilder 实例源码

项目:xtext-core    文件:RunnerBuilder.java   
@Override
protected AnnotatedBuilder annotatedBuilder() {
    return new AnnotatedBuilder(this) {
        @Override
        public Runner buildRunner(Class<? extends Runner> runnerClass,
                Class<?> testClass) throws Exception {
            if (XtextRunner.class.equals(runnerClass)) {
                return new AllScenariosRunner(testClass, processor, scenarios);
            }
            return super.buildRunner(runnerClass, testClass);
        }
    };
}