Created
March 11, 2019 22:12
-
-
Save mchmielarz/2dc5c087773e55dcf145638a1c446854 to your computer and use it in GitHub Desktop.
New checks in TryAssert from assertj-vavr v0.1.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
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