public Object doSomething(Object o);
嘲笑したいもの。パラメータを返すだけです。私は試した:
Capture<Object> copyCaptcher = new Capture<Object>();
expect(mock.doSomething(capture(copyCaptcher)))
.andReturn(copyCatcher.getValue());
しかし、成功しなければ、 AssertionError がjava.lang.AssertionError: Nothing captured yet
. 何か案は?