本文整理匯總了Java中org.junit.internal.builders.AnnotatedBuilder類的典型用法代碼示例。如果您正苦於以下問題:Java AnnotatedBuilder類的具體用法?Java AnnotatedBuilder怎麽用?Java AnnotatedBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AnnotatedBuilder類屬於org.junit.internal.builders包,在下文中一共展示了AnnotatedBuilder類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: annotatedBuilder
import org.junit.internal.builders.AnnotatedBuilder; //導入依賴的package包/類
@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);
}
};
}