Class MockitoTestExecutionListener

java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
All Implemented Interfaces:
Ordered, TestExecutionListener

@Deprecated(since="3.4.0", forRemoval=true) public class MockitoTestExecutionListener extends AbstractTestExecutionListener
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.4.0 for removal in 3.6.0 in favor of MockitoTestExecutionListener
TestExecutionListener to enable @MockBean and @SpyBean support.

To use the automatic reset support of @MockBean and @SpyBean, configure ResetMocksTestExecutionListener as well.

Since:
1.4.2
Author:
Phillip Webb, Andy Wilkinson, Moritz Halbritter
See Also: