protected internal virtual Statement withPotentialTimeout(FrameworkMethod method, object test, Statement next) { long timeout = this.getTimeout((Test) method.getAnnotation((Class) ClassLiteral<Test>.Value)); if (timeout > 0L) return (Statement) new FailOnTimeout(next, timeout); else return next; }
protected internal virtual void runChild(FrameworkMethod method, RunNotifier notifier) { EachTestNotifier eachTestNotifier = this.makeNotifier(method, notifier); if (method.getAnnotation((Class) ClassLiteral<Ignore>.Value) != null) this.runIgnored(eachTestNotifier); else this.runNotIgnored(method, eachTestNotifier); }
protected internal virtual Statement possiblyExpectingExceptions(FrameworkMethod method, object test, Statement next) { Test test1 = (Test) method.getAnnotation((Class) ClassLiteral<Test>.Value); if (this.expectsException(test1)) return (Statement) new ExpectException(next, this.getExpectedException(test1)); else return next; }