Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created March 11, 2019 22:12
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/2dc5c087773e55dcf145638a1c446854 to your computer and use it in GitHub Desktop.
Save mchmielarz/2dc5c087773e55dcf145638a1c446854 to your computer and use it in GitHub Desktop.
New checks in TryAssert from assertj-vavr v0.1.0
Try<String> attempt = Try.success("yay!");
assertThat(attempt).isSuccess();
Try<String> failedAttempt = Try.failure(new IllegalStateException());
assertThat(failedAttempt).isFailure();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment