@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) throws Throwable { Runner runner = super.runnerForClass(testClass); if (testClass.getAnnotation(Ignore.class) != null) { if (runner == null) { return new IgnoredClassRunner(testClass); } return decorateIgnoredTestClass(runner); } return runner; }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public void run(RunNotifier notifier) { notifier.fireTestIgnored(getDescription()); }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null) { return new IgnoredClassRunner(testClass); } return null; } }
@Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null || testClass.getAnnotation(IgnoredBySmokeTest.class) != null) return new IgnoredClassRunner(testClass); return null; } };
/** * Create the runner. * * @param klass The test class. * @throws InitializationError If the test class is malformed. */ public RunIfRunner(Class<?> klass) throws InitializationError { boolean ignoreClass = RunIfUtils.isIgnored(klass); // If the entire test class must be ignored, we instantiate an instance of IgnoredClassRunner // since this runner will not instantiate the test class, thus allowing the class to use // illegal API such as Java8Condition method on JDK7 (since it will never be evaluated). this.delegate = ignoreClass ? new IgnoredClassRunner(klass) : new RunIfBlockJunit4ClassRunner(klass); }