Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure AfterAlls are invoked if exception is thrown by a BeforeAll
- BeforeAll: @BeforeAll method or BeforeAllCallback - AfterAll: @afterall method or AfterAllCallback Prior to this commit, if an exception was thrown by a BeforeAll, then AfterAlls were never invoked, which is in strict contrast to the semantics of JUnit 4 and other frameworks. This commit fixes this problem by ensuring that AfterAlls (for the appropriate nesting level) are invoked even if a BeforeAll throws an exception. Fixes: #359
- Loading branch information
Showing
6 changed files
with
149 additions
and
29 deletions.
There are no files selected for viewing
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
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