Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created December 14, 2019 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchmielarz/55daa962e913aebd1c74a1b83d6b0263 to your computer and use it in GitHub Desktop.
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
// 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