MockitoTestExecutionListener
Deprecated (for removal)
Since version 3.4.0
TestExecutionListener to enable @MockBean and @SpyBean support. Also triggers openMocks when any Mockito annotations used, primarily to allow @Captor annotations.
To use the automatic reset support of @MockBean
and @SpyBean
, configure ResetMocksTestExecutionListener as well.
Author
Phillip Webb
Andy Wilkinson
Moritz Halbritter
Since
1.4.2
Deprecated
since 3.4.0 for removal in 3.6.0 in favor of Spring Framework's support for MockitoBean and MockitoSpyBean.