Package org.citrusframework.condition
Class ActionCondition
java.lang.Object
org.citrusframework.condition.AbstractCondition
org.citrusframework.condition.ActionCondition
- All Implemented Interfaces:
org.citrusframework.condition.Condition
- Since:
- 2.7.6
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ActionCondition(org.citrusframework.TestAction action) Default constructor using test action to execute. -
Method Summary
Modifier and TypeMethodDescriptionorg.citrusframework.TestActionGets the test action of this conditionGets the caughtException.getErrorMessage(org.citrusframework.context.TestContext context) getSuccessMessage(org.citrusframework.context.TestContext context) booleanisSatisfied(org.citrusframework.context.TestContext context) voidsetAction(org.citrusframework.TestAction action) Sets the Action to set for this conditionvoidsetCaughtException(Exception caughtException) Sets the caughtException.toString()Methods inherited from class org.citrusframework.condition.AbstractCondition
getName
-
Constructor Details
-
ActionCondition
public ActionCondition()Default constructor. -
ActionCondition
public ActionCondition(org.citrusframework.TestAction action) Default constructor using test action to execute.- Parameters:
action- The test action to execute
-
-
Method Details
-
isSatisfied
public boolean isSatisfied(org.citrusframework.context.TestContext context) -
getSuccessMessage
-
getErrorMessage
-
getAction
public org.citrusframework.TestAction getAction()Gets the test action of this condition- Returns:
- The test action
-
setAction
public void setAction(org.citrusframework.TestAction action) Sets the Action to set for this condition- Parameters:
action- The test action to set
-
getCaughtException
Gets the caughtException.- Returns:
- The exception
-
setCaughtException
Sets the caughtException.- Parameters:
caughtException- the exception to set
-
toString
-