Mockito: how to check calls for real implementation?

I want to check the calls to a log object so that the real implementation is still called (so I can see the result during the tests).

Sort of

verify(logger).error(anyString())
+5
source share
1 answer

you need to use spy to check calls to real objects.

+7
source

All Articles