public RunAfters(Statement next, List afters, object target) { RunAfters runAfters = this; this.fNext = next; this.fAfters = afters; this.fTarget = target; }
public RunBefores(Statement next, List befores, object target) { RunBefores runBefores = this; this.fNext = next; this.fBefores = befores; this.fTarget = target; }
public FailOnTimeout(Statement next, long timeout) { FailOnTimeout failOnTimeout = this; this.fFinished = false; this.fThrown = (Exception) null; this.fNext = next; this.fTimeout = timeout; }
public virtual Statement apply(Statement @base, FrameworkMethod method, object target) { return (Statement) new FailOnTimeout(@base, (long) this.fMillis); }
protected internal virtual Statement withAfters(FrameworkMethod method, object target, Statement statement) { List annotatedMethods = this.getTestClass().getAnnotatedMethods((Class) ClassLiteral<After>.Value); return !annotatedMethods.isEmpty() ? (Statement) new RunAfters(statement, annotatedMethods, target) : statement; }
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 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; }
public virtual Statement apply(Statement @base, FrameworkMethod method, object target) { return (Statement) new TestWatchman\u00241(this, method, @base); }
public virtual Statement apply(Statement @base, FrameworkMethod method, object target) { return (Statement) new Verifier\u00241(this, @base); }
public Statement apply(Statement @base, FrameworkMethod method, object target) { return (Statement) new ExternalResource\u00241(this, @base); }
public ExpectException(Statement next, Class expected) { ExpectException expectException = this; this.fNext = next; this.fExpected = expected; }
protected internal virtual Statement withAfterClasses(Statement statement) { List annotatedMethods = this.fTestClass.getAnnotatedMethods((Class) ClassLiteral<AfterClass>.Value); return !annotatedMethods.isEmpty() ? (Statement) new RunAfters(statement, annotatedMethods, (object) null) : statement; }