本文整理汇总了Java中org.junit.internal.runners.SuiteMethod类的典型用法代码示例。如果您正苦于以下问题:Java SuiteMethod类的具体用法?Java SuiteMethod怎么用?Java SuiteMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SuiteMethod类属于org.junit.internal.runners包,在下文中一共展示了SuiteMethod类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runnerForClass
import org.junit.internal.runners.SuiteMethod; //导入依赖的package包/类
@Override
public Runner runnerForClass(Class<?> each) throws Throwable {
if (hasSuiteMethod(each)) {
return new SuiteMethod(each);
}
return null;
}
示例2: isSuiteMethodRunner
import org.junit.internal.runners.SuiteMethod; //导入依赖的package包/类
private static Predicate<Description> isSuiteMethodRunner(final Runner runner) {
return new Predicate<Description>() {
@Override
public Boolean apply(final Description a) {
return SuiteMethod.class.isAssignableFrom(runner.getClass());
}
};
}
示例3: isSuite
import org.junit.internal.runners.SuiteMethod; //导入依赖的package包/类
private static boolean isSuite(Object child) {
return child instanceof Suite && !(child instanceof Parameterized) || child instanceof SuiteMethod;
}
示例4: isSuite
import org.junit.internal.runners.SuiteMethod; //导入依赖的package包/类
private static boolean isSuite(Object child) {
return child instanceof Suite || child instanceof SuiteMethod;
}