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:
    FinallyAction
    • Method Detail

      • registerFinallyAction

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

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

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