类 MockitoTestExecutionListener

java.lang.Object
cn.taketoday.test.context.support.AbstractTestExecutionListener
cn.taketoday.framework.test.mock.mockito.MockitoTestExecutionListener
所有已实现的接口:
cn.taketoday.core.Ordered, TestExecutionListener

public class MockitoTestExecutionListener extends AbstractTestExecutionListener
TestExecutionListener to enable @MockBean and @SpyBean support. Also triggers MockitoAnnotations.openMocks(Object) when any Mockito annotations used, primarily to allow @Captor annotations.

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

从以下版本开始:
4.0
作者:
Phillip Webb, Andy Wilkinson
另请参阅: