Interface FinallyActionRegistry

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 FinallyActionRegistry
Registry to declare at execution-time a FinallyAction.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is used to register a FinallyAction during the execution, as a Action may have to free resources after execution.
  • Method Details

    • registerFinallyAction

      void registerFinallyAction(FinallyAction finallyAction)
      This method is used to register a FinallyAction during the execution, as a Action may have to free resources after execution.

      Such registration is effective only if the execution reaches the Action that defines it.

      Parameters:
      finallyAction - to be executed after all steps defined in a Scenario