Class ServiceTalkTestTimeout

  • All Implemented Interfaces:

    public final class ServiceTalkTestTimeout
    extends org.junit.rules.Timeout
    Standard timeout shared by test classes. The Timeout.lookForStuckThread setting is ignored.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.junit.rules.Timeout

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)  
      • Methods inherited from class org.junit.rules.Timeout

        builder, createFailOnTimeoutStatement, getLookingForStuckThread, getTimeout, millis, seconds
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CI

        public static final boolean CI

        public static final int DEFAULT_TIMEOUT_SECONDS
    • Constructor Detail

      • ServiceTalkTestTimeout

        public ServiceTalkTestTimeout()
      • ServiceTalkTestTimeout

        public ServiceTalkTestTimeout​(long timeout,
                                      java.util.concurrent.TimeUnit unit)
      • ServiceTalkTestTimeout

        public ServiceTalkTestTimeout​(long timeout,
                                      java.util.concurrent.TimeUnit unit,
                                      java.lang.Runnable onTimeout)
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule
        apply in class org.junit.rules.Timeout