Class TestExecutionResult

    • Method Detail

      • successful

        public static TestExecutionResult successful()
        Obtain a TestExecutionResult for a successful execution of a test or container.
      • aborted

        public static TestExecutionResult aborted​(Throwable throwable)
        Obtain a TestExecutionResult for an aborted execution of a test or container with the supplied throwable.
        Parameters:
        throwable - the throwable that caused the aborted execution; may be null
      • failed

        public static TestExecutionResult failed​(Throwable throwable)
        Obtain a TestExecutionResult for a failed execution of a test or container with the supplied throwable.
        Parameters:
        throwable - the throwable that caused the failed execution; may be null
      • getThrowable

        public Optional<Throwable> getThrowable()
        Get the throwable that caused this result, if available.