public class HamcrestArgumentMatcher<T> extends Object implements ArgumentMatcher<T>
| Constructor and Description |
|---|
HamcrestArgumentMatcher(org.hamcrest.Matcher<T> matcher) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVarargMatcher() |
boolean |
matches(Object argument)
Informs if this matcher accepts the given argument.
|
String |
toString() |
public HamcrestArgumentMatcher(org.hamcrest.Matcher<T> matcher)
public boolean matches(Object argument)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches in interface ArgumentMatcher<T>argument - the argumentpublic boolean isVarargMatcher()
Copyright © 2024. All rights reserved.