[英]mockito: how to verify calls on real implementation?
I'd like to verify calls to a logger object, so that the real implementation is still called (so I can see the output during tests). 我想验证对logger对象的调用,以便仍然调用实际的实现(所以我可以在测试期间看到输出)。
Something like 就像是
verify(logger).error(anyString())
你需要使用间谍来验证真实对象的调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.