Jmock - makes fun of a method with a long [] as input and with (any ())

I have a question related to jmock library. I am trying to make fun of a method that has a long[] and with(any()) parameter. Is there a direct way to do this?

 public class A { public void Method_A(long[] a) { //Do Somthing. need to mocking } } 
+4
source share
1 answer

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

+8
source

All Articles