类 TestTimedOutException

    • 构造器详细资料

      • TestTimedOutException

        public TestTimedOutException​(long timeout,
                                     TimeUnit timeUnit)
        Creates exception with a standard message "test timed out after [timeout] [timeUnit]"
        参数:
        timeout - the amount of time passed before the test was interrupted
        timeUnit - the time unit for the timeout value
    • 方法详细资料

      • getTimeout

        public long getTimeout()
        Gets the time passed before the test was interrupted