-
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.
Replace custom stream comparison assertion with library call #903
The ResourceTestUtil provides a compareContents() method for comparing the contents of two streams. This method is used in assertTrue() statements to check for equality of contents of two stream. Modern assertion frameworks already provide that functionality and, in addition, also provide proper error messages when the comparison yields differences. This change removes the compareContents() method and replaces all calls with either direct string comparison if the indirection over a stream became unnecesary or using assertThat().hasContent() or assertThat().hasSameContentAs(). Contributes to #903
- Loading branch information
1 parent
5f7b6e7
commit 45aa1a4
Showing
15 changed files
with
208 additions
and
194 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
Oops, something went wrong.