Class MockitoPostProcessor

java.lang.Object
org.springframework.boot.test.mock.mockito.MockitoPostProcessor
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanFactoryPostProcessor, BeanPostProcessor, InstantiationAwareBeanPostProcessor, Ordered

A BeanFactoryPostProcessor used to register and inject @MockBeans with the ApplicationContext. An initial set of definitions can be passed to the processor with additional definitions being automatically created from @Configuration classes that use @MockBean.
Since:
1.4.0
Author:
Phillip Webb, Andy Wilkinson, Stephane Nicoll, Andreas Neiser