Package org.springframework.boot.test.mock.mockito
Mockito integration for Spring Boot tests.
Class Summary Class Description 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
.Enum Summary Enum Description MockReset Reset strategy used on a mock bean.Annotation Types Summary Annotation Type Description 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.