本文整理汇总了Java中org.junit.runners.model.RunnerBuilder.runners方法的典型用法代码示例。如果您正苦于以下问题:Java RunnerBuilder.runners方法的具体用法?Java RunnerBuilder.runners怎么用?Java RunnerBuilder.runners使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.junit.runners.model.RunnerBuilder
的用法示例。
在下文中一共展示了RunnerBuilder.runners方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DynamicSuite
import org.junit.runners.model.RunnerBuilder; //导入方法依赖的package包/类
public DynamicSuite(final Class<?> clazz, final RunnerBuilder builder) throws InitializationError {
this(clazz, builder.runners(clazz, getSuiteClasses(clazz)));
}
示例2: EasySuite
import org.junit.runners.model.RunnerBuilder; //导入方法依赖的package包/类
/**
* Call this when there is no single root class (for example, multiple class names
* passed on the command line to {@link org.junit.runner.JUnitCore}
*
* @param builder builds runners for classes in the suite
* @param classes the classes in the suite
*/
public EasySuite(RunnerBuilder builder, Class<?>[] classes) throws InitializationError {
this(null, builder.runners(null, classes));
}
示例3: createRunnersForChildTestClasses
import org.junit.runners.model.RunnerBuilder; //导入方法依赖的package包/类
/**
* Builds the {@link Runner}s the same way as in {@link Suite#Suite(RunnerBuilder, Class[])}
*
* @param suiteTestClass
* @param runnerBuilder
* @param suiteChildClasses
* @return
* @throws InitializationError
*/
protected List<Runner> createRunnersForChildTestClasses(Class<?> suiteTestClass, RunnerBuilder runnerBuilder, Class<?>[] suiteChildClasses)
throws InitializationError {
return runnerBuilder.runners(suiteTestClass, suiteChildClasses);
}