Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jmock - mocking a method with long[] as input and with(any())

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 
 }
}
like image 872
Sami Avatar asked Jan 19 '23 06:01

Sami


1 Answers

Yes. Just use any(long[].class).

like image 126
JB Nizet Avatar answered Jan 29 '23 09:01

JB Nizet