ResetMocksTestExecutionListener is required to enable @SpyBean/@MockBean
's reset()
attribute.
https://github.com/spring-projects/spring-boot/issues/25366
Comment From: wilkinsona
Thanks very much, @cdalexndr. In addition to your updates to the reference documentation, I've also made some additions to the javadoc of MockitoTestExecutionListener
and ResetMocksTestExecutionListener
.