Interface OpHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OpHandler
Executes one scenario step and returns its result (or an OpResult).
  • Method Summary

    Modifier and Type
    Method
    Description
    Runs the step.
  • Method Details

    • run

      Object run(StepContext ctx) throws Exception
      Runs the step.
      Parameters:
      ctx - step context with substituted arguments and the target
      Returns:
      the result value checked against the step expectations, may be null
      Throws:
      Exception - any error; SDK errors are compared with expect.error