I\'m pretty new to Mockito and have some trouble with clean up.
I used to use JMock2 for unit tests. As far as I know, JMock2 preserves the expectations and other mo
Spring Boot has @MockBean annotation which you can use to mock your service. You don't need to reset mocks manually any more. Just replace @Autowired by @MockBean:
@Autowired
@MockBean
@MockBean private PlaceOrderService placeOrderService;