Class Assert

All Implemented Interfaces:
org.citrusframework.common.Described, org.citrusframework.common.Named, org.citrusframework.Completable, org.citrusframework.container.TestActionContainer, org.citrusframework.TestAction, org.citrusframework.TestActorAware

public class Assert extends AbstractActionContainer
Assert exception to happen in nested test action.
Since:
2009
  • Constructor Details

  • Method Details

    • doExecute

      public void doExecute(org.citrusframework.context.TestContext context)
      Description copied from class: AbstractTestAction
      Subclasses may add custom execution logic here.
      Specified by:
      doExecute in class AbstractTestAction
    • getAction

      public org.citrusframework.TestAction getAction()
      Gets the action.
      Returns:
      the action
    • getMessage

      public String getMessage()
      Get the message to send.
      Returns:
      the message
    • getException

      public Class<? extends Throwable> getException()
      Gets the exception.
      Returns:
      the exception
    • getTestAction

      public org.citrusframework.TestAction getTestAction(int index)
      Specified by:
      getTestAction in interface org.citrusframework.container.TestActionContainer
      Overrides:
      getTestAction in class AbstractActionContainer
    • getActions

      public List<org.citrusframework.TestAction> getActions()
      Specified by:
      getActions in interface org.citrusframework.container.TestActionContainer
      Overrides:
      getActions in class AbstractActionContainer