/** * Create a {@code TestExecutionResult} for an <em>aborted</em> execution * of a test or container with the supplied {@link Throwable throwable}. * * @param throwable the throwable that caused the aborted execution; may be * {@code null} * @return the {@code TestExecutionResult}; never {@code null} */ public static TestExecutionResult aborted(Throwable throwable) { return new TestExecutionResult(ABORTED, throwable); }
/** * Create a {@code TestExecutionResult} for a <em>failed</em> execution * of a test or container with the supplied {@link Throwable throwable}. * * @param throwable the throwable that caused the failed execution; may be * {@code null} * @return the {@code TestExecutionResult}; never {@code null} */ public static TestExecutionResult failed(Throwable throwable) { return new TestExecutionResult(FAILED, throwable); }