File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
junit-jupiter-api/src/main/java/org/junit/jupiter/api Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2727 *
2828 * <p>In direct contrast to failed {@linkplain Assertions assertions},
2929 * failed assumptions do not result in a test <em>failure</em>; rather,
30- * a failed assumption results in a test being <em>aborted</em>.
30+ * a failed assumption results in a test being <em>aborted</em>. However,
31+ * failed assertions and other exceptions thrown by tests take precedence over
32+ * failed assumptions when both are thrown during the execution of a test
33+ * (for example, by different lifecycle methods), regardless of the order they
34+ * are thrown in. In such cases, the test will be reported as <em>failed</em>
35+ * rather than <em>aborted</em>.
3136 *
3237 * <p>Assumptions are typically used whenever it does not make sense to
3338 * continue execution of a given test method — for example, if the
You can’t perform that action at this time.
0 commit comments