forked from junit-team/junit4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MultipleFailureException.assertEmpty() to wrap assumption
failures if there are multiple exceptions. This makes failures during the handling of assumption failures easier to understand.
- Loading branch information
Showing
4 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/org/junit/TestCouldNotBeSkippedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.junit; | ||
|
||
/** | ||
* Indicates that a test that indicated that it should be skipped could not be skipped. | ||
* This can be thrown if a test uses the methods in {@link Assume} to indicate that | ||
* it should be skipped, but before processing of the test was completed, other failures | ||
* occured. | ||
* | ||
* @see org.junit.Assume | ||
* @since 4.13 | ||
*/ | ||
public class TestCouldNotBeSkippedException extends RuntimeException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** Creates an instance using the given assumption failure. */ | ||
public TestCouldNotBeSkippedException(org.junit.internal.AssumptionViolatedException cause) { | ||
super("Test could not be skipped due to other failures", cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters