Class ArrayEquals

java.lang.Object
org.mockito.internal.matchers.Equals
org.mockito.internal.matchers.ArrayEquals
All Implemented Interfaces:
Serializable, ArgumentMatcher<Object>, ContainsExtraTypeInfo

public class ArrayEquals extends Equals
See Also:
  • Constructor Details

    • ArrayEquals

      public ArrayEquals(Object wanted)
  • Method Details

    • matches

      public boolean matches(Object actual)
      Description copied from interface: ArgumentMatcher
      Informs 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:
      matches in interface ArgumentMatcher<Object>
      Overrides:
      matches in class Equals
      Parameters:
      actual - the argument
      Returns:
      true if this matcher accepts the given argument.
    • toString

      public String toString()
      Overrides:
      toString in class Equals
    • createObjectArray

      public static Object[] createObjectArray(Object array)