程序包 org.springframework.boot.test.mock.mockito
Mockito integration for Spring Boot tests.
类概要 类 说明 MockitoPostProcessor MockitoTestExecutionListener TestExecutionListener
to triggerMockitoAnnotations.initMocks(Object)
when@MockBean
annotations are used.ResetMocksTestExecutionListener TestExecutionListener
to reset any mock beans that have been marked with aMockReset
.枚举概要 枚举 说明 MockReset Reset strategy used on a mock bean.注释类型概要 注释类型 说明 MockBean Annotation that can be used to add mocks to a SpringApplicationContext
.MockBeans Container annotation that aggregates severalMockBean
annotations.SpyBean Annotation that can be used to apply Mockito spies to a SpringApplicationContext
.SpyBeans Container annotation that aggregates severalSpyBean
annotations.