Mockito 匹配器和基元数组
使用 Mockito,我想 verify() 在其参数列表中使用 byte[] 的方法调用,但我没有找到如何编写.
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[] )
我只想要 anyByteArray() 之类的东西,如何使用 Mockito 做到这一点?
I just want something like anyByteArray(), how to do that with Mockito ?
推荐答案
我会试试 any(byte[].class)
相关文章