本文整理匯總了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);
}