With Mockito, I want to verify() a method call with byte[] in its argument list, but I didn\'t find how to write this.
verify()
byte[]
myMethod( byte[
You can always create a custom Matcher using argThat
argThat
Mockito.verify(yourMockHere).methodCallToBeVerifiedOnYourMockHere(ArgumentMatchers.argThat(new ArgumentMatcher() { @Override public boolean matches(Object argument) { YourTypeHere[] yourArray = (YourTypeHere[]) argument; // Do whatever you like, here is an example: if (!yourArray[0].getStringValue().equals("first_arr_val")) { return false; } return true; } }));