π£οΈFluent Assertions
How to assert Result objects fluently
How to Use this Add-On
Group ID
Artifact ID
Latest Version
Asserting Result Objects
import static com.leakyabstractions.result.assertj.ResultAssertions.assertThat;
@Test
void testAssertThat() {
// Given
final int zero = 0;
// When
final Result<Integer, String> result = success(zero);
// Then
assertThat(zero).isZero();
assertThat(result).hasSuccess(zero);
}Conclusion
Last updated
Was this helpful?