Class ResultAssertions

java.lang.Object
org.assertj.core.api.Assertions
com.leakyabstractions.result.assertj.ResultAssertions
All Implemented Interfaces:
InstanceOfAssertFactories

public class ResultAssertions extends Assertions
Entry point for Result assertions.
Author:
Guillermo Calvo
  • Constructor Details

    • ResultAssertions

      protected ResultAssertions()
      Creates a new instance.
  • Method Details

    • assertThat

      public static <S, F> ResultAssert<S,F> assertThat(Result<S,F> actual)
      Create assertion for Result.
      Type Parameters:
      S - type of the success value contained in the Result.
      F - type of the failure value contained in the Result.
      Parameters:
      actual - the actual value.
      Returns:
      the created assertion object.