With Mockito, I want to verify()
a method call with byte[]
in its argument list, but I didn\'t find how to write this.
myMethod( byte[
What works for me was org.mockito.ArgumentMatchers.isA
for example:
isA(long[].class)
that works fine.
the implementation difference of each other is:
public static T any(Class type) {
reportMatcher(new VarArgAware(type, ""));
return Primitives.defaultValue(type);
}
public static T isA(Class type) {
reportMatcher(new InstanceOf(type));
return Primitives.defaultValue(type);
}