I have a question related to jmock library. I am trying to mock a method that has a parameter of long[]
and with(any())
. Is there a direct way to do that?
public class A
{
public void Method_A(long[] a)
{
//Do Somthing. need to mocking
}
}
Yes. Just use any(long[].class)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With