org.mockito.internal.matchers
Class ArrayEquals
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.mockito.ArgumentMatcher<java.lang.Object>
org.mockito.internal.matchers.Equals
org.mockito.internal.matchers.ArrayEquals
- All Implemented Interfaces:
- java.io.Serializable, org.hamcrest.Matcher<java.lang.Object>, org.hamcrest.SelfDescribing, ContainsExtraTypeInformation
public class ArrayEquals
- extends Equals
- See Also:
- Serialized Form
Constructor Summary |
ArrayEquals(java.lang.Object wanted)
|
Method Summary |
static java.lang.Object[] |
createObjectArray(java.lang.Object array)
|
void |
describeTo(org.hamcrest.Description description)
|
boolean |
matches(java.lang.Object actual)
Returns whether this matcher accepts the given argument. |
Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ArrayEquals
public ArrayEquals(java.lang.Object wanted)
matches
public boolean matches(java.lang.Object actual)
- Description copied from class:
ArgumentMatcher
- Returns whether this matcher accepts the given argument.
The method should never assert if the argument doesn't match. It
should only return false.
- Specified by:
matches
in interface org.hamcrest.Matcher<java.lang.Object>
- Overrides:
matches
in class Equals
- Parameters:
actual
- the argument
- Returns:
- whether this matcher accepts the given argument.
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interface org.hamcrest.SelfDescribing
- Overrides:
describeTo
in class Equals
createObjectArray
public static java.lang.Object[] createObjectArray(java.lang.Object array)