-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve assertTableEquals usability (#2567)
Make a few improvements to the assertTableEquals functions: * The "include primary keys" flag is now inferred from the list of expected records; callers no longer have to specify it explicitly. * The expected records can now be any kind of collection, not just a Set. * The lists of expected and actual records are now sorted before they're passed to assertEquals, rather than passed as sets. This should make it easier to spot the differences in assertion failure messages, especially when the test is run in an IDE that can diff the expected and actual values.
- Loading branch information
Showing
3 changed files
with
22 additions
and
34 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