Interface Call

All Known Subinterfaces:
CallDecorator<C>
All Known Implementing Classes:
ActCall, AssertionCall, CallDecorator.Base, EnsuredCall, RetryCall, SceneCall

public sealed interface Call permits ActCall<T,R>, CallDecorator<C>, SceneCall

An interface that models an occurrence of an action in a test scenario.

As a design policy, a call is defined for structural actions of actionunit, such as retry, sequential, parallel, etc. Functionalities exercised in tests are represented as implementations of LeafAct.

An instance of a Call must be added only once to a Scene.Builder at most. Otherwise,

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.dakusui.actionunit.core.Action
    toAction(ActionComposer actionComposer)
    Converts this call to action to an action object.
  • Method Details

    • toAction

      com.github.dakusui.actionunit.core.Action toAction(ActionComposer actionComposer)

      Converts this call to action to an action object.

      This is an Node#accept method in the Visitor pattern. Usually implementations of this method should call back by actionComposer#create(this) to make a double dispatch happen.

      Each value in the ongoingResolverBundle is a function that resolves a value of a variable designated by a corresponding key.

      Parameters:
      actionComposer - A visitor, which creates an action from this object.
      Returns:
      An action created by actionComposer.