阅读背景:

如何将Mockito捕获的aguments传递给注入的模拟对象的方法?

来源:互联网 

I am trying to test a service class, which internally makes use of a Spring AMQP connection object. This connection object is injected by Spring. However, I don't want my unit test to actually communicate with the AMQP broker, so I am using Mockito inject a mock of the connection object.I am trying to test a service class, which inte




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: