Class TimeoutClientRunContextStatement


  • public class TimeoutClientRunContextStatement
    extends org.junit.runners.model.Statement
    Statement for executing tests with a timeout (i.e. the annotated test method is expected to complete within the specified amount of time). The given next statement is executed in a new model job. Hence this statement cannot be evaluated within a model job.
    Since:
    5.1
    See Also:
    Test.timeout()
    • Field Detail

      • m_next

        protected final org.junit.runners.model.Statement m_next
    • Constructor Detail

      • TimeoutClientRunContextStatement

        public TimeoutClientRunContextStatement​(org.junit.runners.model.Statement next,
                                                long timeoutMillis)
    • Method Detail

      • evaluate

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