Package com.consol.citrus.condition
Interface Condition
-
public interface ConditionTests whether a condition is satisfied.- Since:
- 2.4
- Author:
- Martin Maher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetErrorMessage(TestContext context)Construct proper error message for this condition.StringgetName()Gets the condition name.StringgetSuccessMessage(TestContext context)Construct proper success message for this condition.booleanisSatisfied(TestContext context)Tests the condition returning true if it is satisfied.
-
-
-
Method Detail
-
getName
String getName()
Gets the condition name.- Returns:
-
isSatisfied
boolean isSatisfied(TestContext context)
Tests the condition returning true if it is satisfied.- Parameters:
context- the citrus test context- Returns:
- true when satisfied otherwise false
-
getSuccessMessage
String getSuccessMessage(TestContext context)
Construct proper success message for this condition.- Parameters:
context- the citrus test context- Returns:
-
getErrorMessage
String getErrorMessage(TestContext context)
Construct proper error message for this condition.- Parameters:
context- the citrus test context- Returns:
-
-