开发者

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

开发者 https://www.devze.com 2023-03-19 22:08 出处:网络
I have a q开发者_运维知识库uestion 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?

I have a q开发者_运维知识库uestion 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).

0

精彩评论

暂无评论...
验证码 换一张
取 消