1

Can we make Spring reset @MockBean and @Mock annotated things explicitly? I mean are there any magic annotations which forces reset on things after Test method is evaluated.

PS. I don't want to explicitly write reset() in @AfterTest

Saeed Hassanvand
  • 931
  • 1
  • 14
  • 31
voipp
  • 1,243
  • 3
  • 18
  • 31
  • Possible duplicate of [How to clean up mocks in spring tests when using Mockito](https://stackoverflow.com/questions/18164123/how-to-clean-up-mocks-in-spring-tests-when-using-mockito) – Darren Forsythe Nov 28 '18 at 16:29

0 Answers0