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).
Something like 开发者_开发百科
verify(logger).error(anyString())
you need to use spy to verify invocations on real objects.
精彩评论