public abstract class AbstractCollectionMatcher extends AbstractSimpleMatcher
| Constructor and Description |
|---|
AbstractCollectionMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isApplicableTo(Class<?> parameterType,
Class<?>... propertiesTypes) |
protected abstract boolean |
matches(Object actual,
Collection collection)
Used to find out if a collection satisfies the condition set forth by this matcher
|
protected boolean |
matches(Parameter parameter,
Object actual,
Object property)
Called to see if the condition holds
|
matchesprotected final boolean matches(Parameter parameter, Object actual, Object property)
AbstractSimpleMatchermatches in class AbstractSimpleMatcherparameter - the parameteractual - the actual valueproperty - the expectationprotected abstract boolean matches(Object actual, Collection collection)
actual - the actual valuecollection - the collectionpublic boolean isApplicableTo(Class<?> parameterType, Class<?>... propertiesTypes)
isApplicableTo in interface MatcherisApplicableTo in class AbstractSimpleMatcherCopyright © 2014–2021. All rights reserved.