读书人

jmock 中unexpected invocation异常

发布时间: 2012-06-28 15:20:03 作者: rapoo

jmock 中unexpected invocation错误

远程服务接口

?

有一句话:To define looser constraints, specify all arguments as matchers within with clauses:allowing (calculator).add(with(any(int.class)), with(any(int.class)));
?

?

使用:?oneOf(remoteService).findMemberById(with(any(Query.class))); 这句解决问题。

?

?

读书人网 >开源软件

热点推荐