Interface GivenDsl.Terminated<C extends Command>

Type Parameters:
C - the generic command type
Enclosing interface:
GivenDsl<C extends Command>

public static interface GivenDsl.Terminated<C extends Command>
Terminal state of the Given phase after calling GivenDsl.Initial.nothing(). Only allows transitioning to command execution via when(Command).
  • Method Summary

    Modifier and Type
    Method
    Description
    when(C command)
    Completes the Given phase and transitions to the When phase by executing the specified command.
    when(C command, Map<String,?> metaData)
    Completes the Given phase and transitions to the When phase by executing the specified command with meta-data.
  • Method Details

    • when

      ExpectDsl.Outcome when(C command)
      Completes the Given phase and transitions to the When phase by executing the specified command.
      Parameters:
      command - the command to execute
      Returns:
      an ExpectDsl.Outcome to specify expected outcomes
    • when

      ExpectDsl.Outcome when(C command, Map<String,?> metaData)
      Completes the Given phase and transitions to the When phase by executing the specified command with meta-data.
      Parameters:
      command - the command to execute
      metaData - the meta-data to pass to the command handler
      Returns:
      an ExpectDsl.Outcome to specify expected outcomes