Package dev.comfast.cf.common.conditions
Interface Condition
- All Known Implementing Classes:
AllMatch,ConditionImpl
public interface Condition
Represents a condition that can be checked on an element.
Conditions are used in
CfLocator.should(Condition) method.-
Method Summary
-
Method Details
-
getName
String getName()- Returns:
- name of condition
-
expect
throw if condition not pass -
negate
- Returns:
- negated condition with new name
-
isPassIfNotFound
default boolean isPassIfNotFound()- Returns:
- should pass if given element not exists
-
negate
- Returns:
- negated condition
-