Capture<MyType> myCapture = Capture.newInstance(); expect(myMockedObject.myMethod(capture(myCapture)).andReturn(...).times(2);
当模拟被验证但myCapture.getValues().size()返回1.我期望捕获每个方法调用.如何捕获两个方法调用的参数?
Capture<MyType> myCapture = Capture.newInstance(CaptureType.ALL);