Created
December 14, 2019 07:21
-
-
Save mchmielarz/55daa962e913aebd1c74a1b83d6b0263 to your computer and use it in GitHub Desktop.
Assertions for ordered maps added to MapAssert in assertj-vavr v0.2.0
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
// given | |
private static final Map<String, String> PERSONS_ORDERED = TreeMap.ofEntries(GIMLI, FRODO); | |
// in test | |
assertThat(PERSONS_ORDERED).containsExactly(FRODO, GIMLI); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment