Class TimeLimitedStatement

java.lang.Object
org.junit.runners.model.Statement
org.robolectric.internal.TimeLimitedStatement

public class TimeLimitedStatement extends org.junit.runners.model.Statement
Similar to JUnit's FailOnTimeout, but runs the test on the current thread (with a timer on a new thread) rather than the other way around.
  • Constructor Details

    • TimeLimitedStatement

      public TimeLimitedStatement(long timeout, org.junit.runners.model.Statement delegate)
  • Method Details

    • evaluate

      public void evaluate() throws Throwable
      Specified by:
      evaluate in class org.junit.runners.model.Statement
      Throws:
      Throwable