Class TestResult

    • Constructor Detail

      • TestResult

        @Deprecated
        public TestResult()
        Deprecated.
        Create a empty result.

        Start time is set to Current Milliseconds.
      • TestResult

        @Deprecated
        public TestResult​(TestResult.Status status)
        Deprecated.
        Create a new TestResult.

        Start time is set to Current Milliseconds.
        Parameters:
        status - The result status.
      • TestResult

        @Deprecated
        public TestResult​(TestResult.Status status,
                          Throwable throwable)
        Deprecated.
        Create a new TestResult.

        Start time is set to Current Milliseconds.
        Parameters:
        status - The result status.
        throwable - thrown exception if any
    • Method Detail

      • getDescription

        public String getDescription()
      • setDescription

        @Deprecated
        public void setDescription​(String description)
        Deprecated.
      • addDescription

        public void addDescription​(String description)
      • getThrowable

        public Throwable getThrowable()
        If the test failed, the exception that was thrown. It does not need to be the root cause.
      • getStart

        public long getStart()
        Get the start time.
        Returns:
        Start time in milliseconds
      • setStart

        public TestResult setStart​(long start)
        Set the start time of the test.
        Parameters:
        start - Start time in milliseconds
      • getEnd

        public long getEnd()
        Get the end time.
        Returns:
        End time in milliseconds
      • setEnd

        public TestResult setEnd​(long end)
        Set the end time of the test.
        Parameters:
        end - time in milliseconds