MockitoPostProcessor
open class MockitoPostProcessor : InstantiationAwareBeanPostProcessor, BeanClassLoaderAware, BeanFactoryAware, BeanFactoryPostProcessor, Ordered
Deprecated
Since version 3.4.0
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.
Author
Phillip Webb
Andy Wilkinson
Stephane Nicoll
Andreas Neiser
Since
1.4.0
Deprecated
since 3.4.0 for removal in 3.6.0 in favor of Spring Framework's MockitoBean and MockitoSpyBean support
Constructors
Link copied to clipboard
Create a new MockitoPostProcessor instance with the given initial definitions.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun register(registry: BeanDefinitionRegistry, postProcessor: Class<out MockitoPostProcessor>, definitions: Set<Definition>)
Register the processor with a BeanDefinitionRegistry.
Link copied to clipboard
Link copied to clipboard