Interface MockErrorOutput.Builder

  • Method Details

    • error

      A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.

      Parameters:
      error - A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cause

      MockErrorOutput.Builder cause(String causeValue)

      A string containing the cause of the exception thrown when executing the state's logic.

      Parameters:
      causeValue - A string containing the cause of the exception thrown when executing the state's logic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.