-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve assertions in resource regression tests #903
This change removes non-useful messages from assertions in org.eclipse.core.tests.resources.regression. In cases where multiple assertions without proper messages are placed in subsequent lines of code, assertions are improved to provide better messages and help identifying the failing line of code. This particularly affects assertTrue/assertFalse statements that are replaced with assertThat().matches(). This also prepares for a migration of assertions to JUnit 5, which would otherwise require swapping of parameters, as the message parameter has been moved to the end of the parameter list. Contributes to #903
- Loading branch information
1 parent
45aa1a4
commit a022584
Showing
30 changed files
with
395 additions
and
356 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
Oops, something went wrong.