Class Scenario.When.StateChangeResult<S>

java.lang.Object
org.springframework.modulith.test.Scenario.When.StateChangeResult<S>
Enclosing class:
Scenario.When<T>

public class Scenario.When.StateChangeResult<S> extends Object
  • Constructor Details

    • StateChangeResult

      StateChangeResult(org.springframework.modulith.test.Scenario.When.ExecutionResult<S,T> result)
  • Method Details

    • andVerify

      public void andVerify(Consumer<S> consumer)
      Verifies the state change result using the given Consumer.
      Parameters:
      consumer - must not be null.
    • andVerify

      public void andVerify(BiConsumer<S,T> consumer)
      Verifies the state change result and stimulus result using the given BiConsumer.
      Parameters:
      consumer - must not be null.