@Override public Runner runnerForClass(Class<?> each) throws Throwable { if (hasSuiteMethod(each)) { return new SuiteMethod(each); } return null; }
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()); } }; }
private static boolean isSuite(Object child) { return child instanceof Suite && !(child instanceof Parameterized) || child instanceof SuiteMethod; }
private static boolean isSuite(Object child) { return child instanceof Suite || child instanceof SuiteMethod; }