In Spring applications one can write tests with mocked beans which are autowired by default and which can be further customised with the usual Mockito methods. For this, the @MockedBean annotation is used. However, when using just Mockito without Spring, one can configure the mocks to print all interactions, see How to use Mockito to show all invocations on a mock. Is this debugging also possible with mocked beans?
Aucun commentaire:
Enregistrer un commentaire