Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created March 11, 2019 22:14
Show Gist options
  • Select an option

  • Save mchmielarz/bf990f169345341d17edc0b6872dbf7b to your computer and use it in GitHub Desktop.

Select an option

Save mchmielarz/bf990f169345341d17edc0b6872dbf7b to your computer and use it in GitHub Desktop.
Examples of fixed NPE in assertions from assertj-vavr v0.1.0
assertThat(Option.some(null)).contains(null);
assertThat(Try.success(null)).contains(null);
assertThat(Either.right(null)).containsOnRight(null);
assertThat(Either.left(null)).containsOnLeft(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment