Пример #1
0
 public RunAfters(Statement next, List afters, object target)
 {
   RunAfters runAfters = this;
   this.fNext = next;
   this.fAfters = afters;
   this.fTarget = target;
 }
Пример #2
0
 public RunBefores(Statement next, List befores, object target)
 {
   RunBefores runBefores = this;
   this.fNext = next;
   this.fBefores = befores;
   this.fTarget = target;
 }
Пример #3
0
 public FailOnTimeout(Statement next, long timeout)
 {
   FailOnTimeout failOnTimeout = this;
   this.fFinished = false;
   this.fThrown = (Exception) null;
   this.fNext = next;
   this.fTimeout = timeout;
 }
Пример #4
0
 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;
 }
Пример #8
0
 public virtual Statement apply(Statement @base, FrameworkMethod method, object target)
 {
   return (Statement) new TestWatchman\u00241(this, method, @base);
 }
Пример #9
0
 public virtual Statement apply(Statement @base, FrameworkMethod method, object target)
 {
   return (Statement) new Verifier\u00241(this, @base);
 }
Пример #10
0
 public Statement apply(Statement @base, FrameworkMethod method, object target)
 {
   return (Statement) new ExternalResource\u00241(this, @base);
 }
Пример #11
0
 public ExpectException(Statement next, Class expected)
 {
   ExpectException expectException = this;
   this.fNext = next;
   this.fExpected = expected;
 }
Пример #12
0
 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;
 }