Package org.robolectric.internal
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 Summary
ConstructorDescriptionTimeLimitedStatement
(long timeout, org.junit.runners.model.Statement delegate) -
Method Summary
-
Constructor Details
-
TimeLimitedStatement
public TimeLimitedStatement(long timeout, org.junit.runners.model.Statement delegate)
-
-
Method Details
-
evaluate
- Specified by:
evaluate
in classorg.junit.runners.model.Statement
- Throws:
Throwable
-