public abstract class AbstractSimpleMatcher extends Object implements Matcher
| Constructor and Description |
|---|
AbstractSimpleMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isApplicableTo(Class<?> parameterType,
Class<?>... propertiesTypes) |
boolean |
matches(Parameter parameter,
Object value,
Object... properties)
Determines if the value matches the properties or not, based on the underlying operation.
|
protected abstract boolean |
matches(Parameter parameter,
Object actual,
Object expected)
Called to see if the condition holds
|
public final boolean matches(Parameter parameter, Object value, Object... properties)
Matcherprotected abstract boolean matches(Parameter parameter, Object actual, Object expected)
parameter - the parameteractual - the actual valueexpected - the expectationpublic boolean isApplicableTo(Class<?> parameterType, Class<?>... propertiesTypes)
isApplicableTo in interface MatcherCopyright © 2014–2021. All rights reserved.