Package 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
Constructors Constructor Description ArrayEquals(java.lang.Object wanted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object[]
createObjectArray(java.lang.Object array)
void
describeTo(org.hamcrest.Description description)
By default this method decamelizes matchers name to promote meaningful names for matchers.boolean
matches(java.lang.Object actual)
Returns whether this matcher accepts the given argument.-
Methods inherited from class org.mockito.internal.matchers.Equals
describe, equals, getWanted, hashCode, typeMatches, withExtraTypeInfo
-
-
-
-
Method Detail
-
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.
-
describeTo
public void describeTo(org.hamcrest.Description description)
Description copied from class:ArgumentMatcher
By default this method decamelizes matchers name to promote meaningful names for matchers.For example StringWithStrongLanguage matcher will generate 'String with strong language' description in case of failure.
You might want to override this method to provide more specific description of the matcher (useful when verification failures are reported).
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
- Overrides:
describeTo
in classEquals
- Parameters:
description
- the description to which the matcher description is appended.
-
createObjectArray
public static java.lang.Object[] createObjectArray(java.lang.Object array)
-
-