Package org.citrusframework.condition
Interface Condition
public interface Condition
Tests whether a condition is satisfied.
- Since:
- 2.4
- Author:
- Martin Maher
-
Method Summary
Modifier and TypeMethodDescriptiongetErrorMessage(TestContext context) Construct proper error message for this condition.getName()Gets the condition name.getSuccessMessage(TestContext context) Construct proper success message for this condition.booleanisSatisfied(TestContext context) Tests the condition returning true if it is satisfied.
-
Method Details
-
getName
String getName()Gets the condition name.- Returns:
-
isSatisfied
Tests the condition returning true if it is satisfied.- Parameters:
context- the citrus test context- Returns:
- true when satisfied otherwise false
-
getSuccessMessage
Construct proper success message for this condition.- Parameters:
context- the citrus test context- Returns:
-
getErrorMessage
Construct proper error message for this condition.- Parameters:
context- the citrus test context- Returns:
-