Package org.mockito.internal.hamcrest
Class HamcrestArgumentMatcher<T>
java.lang.Object
org.mockito.internal.hamcrest.HamcrestArgumentMatcher<T>
- All Implemented Interfaces:
ArgumentMatcher<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanInforms if this matcher accepts the given argument.toString()
-
Field Details
-
matcher
private final org.hamcrest.Matcher matcher
-
-
Constructor Details
-
HamcrestArgumentMatcher
-
-
Method Details
-
matches
Description copied from interface:ArgumentMatcherInforms if this matcher accepts the given argument.The 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- Specified by:
matchesin interfaceArgumentMatcher<T>- Parameters:
argument- the argument- Returns:
- true if this matcher accepts the given argument.
-
isVarargMatcher
public boolean isVarargMatcher() -
toString
-