Class ActionCondition

java.lang.Object
org.citrusframework.condition.AbstractCondition
org.citrusframework.condition.ActionCondition
All Implemented Interfaces:
Condition

public class ActionCondition extends AbstractCondition
Since:
2.7.6
  • Constructor Details

    • ActionCondition

      public ActionCondition()
      Default constructor.
    • ActionCondition

      public ActionCondition(TestAction action)
      Default constructor using test action to execute.
      Parameters:
      action - The test action to execute
  • Method Details

    • isSatisfied

      public boolean isSatisfied(TestContext context)
    • getSuccessMessage

      public String getSuccessMessage(TestContext context)
    • getErrorMessage

      public String getErrorMessage(TestContext context)
    • getAction

      public TestAction getAction()
      Gets the test action of this condition
      Returns:
      The test action
    • setAction

      public void setAction(TestAction action)
      Sets the Action to set for this condition
      Parameters:
      action - The test action to set
    • getCaughtException

      public Exception getCaughtException()
      Gets the caughtException.
      Returns:
      The exception
    • setCaughtException

      public void setCaughtException(Exception caughtException)
      Sets the caughtException.
      Parameters:
      caughtException - the exception to set
    • toString

      public String toString()
      Overrides:
      toString in class Object