Class ResultSoftAssertions

All Implemented Interfaces:
AfterAssertionErrorCollected, AssertionErrorCollector, InstanceOfAssertFactories, Java6StandardSoftAssertionsProvider, SoftAssertionsProvider, StandardSoftAssertionsProvider

public class ResultSoftAssertions extends SoftAssertions
Soft assertions for Result.
Author:
Guillermo Calvo
  • Constructor Details

    • ResultSoftAssertions

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

    • assertThat

      public <S, F> ResultAssert<S,F> assertThat(Result<S,F> actual)
      Create soft 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 soft assertion object.