org.mockito.internal.matchers
public class Equals extends Object implements ArgumentMatcher<Object>, ContainsExtraTypeInfo, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected Object |
getWanted() |
int |
hashCode() |
boolean |
matches(Object actual)
Informs if this matcher accepts the given argument.
|
String |
toString() |
String |
toStringWithType()
Returns more verbose description of the object which include type information
|
boolean |
typeMatches(Object target)
Checks if target target has matching type.
|
public Equals(Object wanted)
public boolean matches(Object actual)
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<Object>actual - the argumentprotected final Object getWanted()
public String toStringWithType()
ContainsExtraTypeInfotoStringWithType in interface ContainsExtraTypeInfopublic boolean typeMatches(Object target)
ContainsExtraTypeInfoContainsExtraTypeInfo.toStringWithType()typeMatches in interface ContainsExtraTypeInfo