Package org.jbehave.core.condition
Class InstanceStepConditionMatcher
- java.lang.Object
-
- org.jbehave.core.condition.InstanceStepConditionMatcher
-
- All Implemented Interfaces:
StepConditionMatcher
public class InstanceStepConditionMatcher extends Object implements StepConditionMatcher
-
-
Constructor Detail
-
InstanceStepConditionMatcher
public InstanceStepConditionMatcher(Collection<Predicate<Object>> conditions)
-
-
Method Detail
-
matches
public boolean matches(Class<? extends Predicate<Object>> condition, Object value) throws StepConditionMatchException
Description copied from interface:StepConditionMatcherChecks whether the condition matches the input value- Specified by:
matchesin interfaceStepConditionMatcher- Parameters:
condition- a class with the implementation of the conditionvalue- the argument to be matched against the condition- Returns:
- the condition evaluation result
- Throws:
StepConditionMatchException- if any error during match process occur
-
-