Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce AssertionTestUtils.assertMessageMatches
assertMessageMatches() is a convenience method for using a RegEx instead of assertMessageStartsWith()/assertMessageEndsWith() combos. This commit makes use of the new method in AssertNullAssertionsTests but leaves all other existing tests unchanged. assertMessageMatches() can be used for new tests, or we can slowly migrate to it where it makes sense as we modify existing tests for some other reason.
- Loading branch information
Showing
2 changed files
with
15 additions
and
12 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