register

open fun register(registry: BeanDefinitionRegistry)

Register the processor with a BeanDefinitionRegistry. Not required when using the SpringRunner as registration is automatic.

Parameters

registry

the bean definition registry


open fun register(registry: BeanDefinitionRegistry, definitions: Set<Definition>)

Register the processor with a BeanDefinitionRegistry. Not required when using the SpringRunner as registration is automatic.

Parameters

registry

the bean definition registry

definitions

the initial mock/spy definitions


open fun register(registry: BeanDefinitionRegistry, postProcessor: Class<out MockitoPostProcessor>, definitions: Set<Definition>)

Register the processor with a BeanDefinitionRegistry. Not required when using the SpringRunner as registration is automatic.

Parameters

registry

the bean definition registry

postProcessor

the post processor class to register

definitions

the initial mock/spy definitions