Class Assert

  • All Implemented Interfaces:
    com.consol.citrus.common.Described, com.consol.citrus.common.Named, com.consol.citrus.Completable, com.consol.citrus.container.TestActionContainer, com.consol.citrus.TestAction, com.consol.citrus.TestActorAware

    public class Assert
    extends AbstractActionContainer
    Assert exception to happen in nested test action.
    Since:
    2009
    Author:
    Christoph Deppisch
    • Constructor Detail

      • Assert

        public Assert​(Assert.Builder builder)
        Default constructor.
    • Method Detail

      • doExecute

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

        public com.consol.citrus.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 com.consol.citrus.TestAction getTestAction​(int index)
        Specified by:
        getTestAction in interface com.consol.citrus.container.TestActionContainer
        Overrides:
        getTestAction in class AbstractActionContainer
      • getActions

        public List<com.consol.citrus.TestAction> getActions()
        Specified by:
        getActions in interface com.consol.citrus.container.TestActionContainer
        Overrides:
        getActions in class AbstractActionContainer