Class AbstractTestAction

    • Field Detail

      • description

        protected String description
        Describing the test action
    • Constructor Detail

      • AbstractTestAction

        protected AbstractTestAction()
    • Method Detail

      • execute

        public void execute​(com.consol.citrus.context.TestContext context)
        Do basic logging and delegate execution to subclass.
        Specified by:
        execute in interface com.consol.citrus.TestAction
      • isDisabled

        public boolean isDisabled​(com.consol.citrus.context.TestContext context)
        Checks if this test action is disabled. Delegates to test actor defined for this test action by default. Subclasses may add additional disabled logic here.
        Specified by:
        isDisabled in interface com.consol.citrus.TestAction
        Parameters:
        context - the current test context.
        Returns:
      • doExecute

        public abstract void doExecute​(com.consol.citrus.context.TestContext context)
        Subclasses may add custom execution logic here.
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface com.consol.citrus.common.Described
      • setDescription

        public AbstractTestAction setDescription​(String description)
        Specified by:
        setDescription in interface com.consol.citrus.common.Described
      • getName

        public String getName()
        Specified by:
        getName in interface com.consol.citrus.TestAction
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface com.consol.citrus.common.Named
      • getActor

        public com.consol.citrus.TestActor getActor()
        Gets the actor.
        Specified by:
        getActor in interface com.consol.citrus.TestAction
        Returns:
        the actor the actor to get.
      • setActor

        public AbstractTestAction setActor​(com.consol.citrus.TestActor actor)
        Sets the actor.
        Specified by:
        setActor in interface com.consol.citrus.TestActorAware
        Parameters:
        actor - the actor to set