Uses of Annotation Interface
org.springframework.test.context.bean.override.BeanOverride
Packages that use BeanOverride
Package
Description
Bean override mechanism based on conventionally-named static methods
in the test class.
Bean overriding mechanism based on Mockito mocking and spying.
-
Uses of BeanOverride in org.springframework.test.context.bean.override.convention
Classes in org.springframework.test.context.bean.override.convention with annotations of type BeanOverrideModifier and TypeClassDescription@interface@TestBeanis an annotation that can be applied to a field in a test class to override a bean in the test'sApplicationContextusing a static factory method. -
Uses of BeanOverride in org.springframework.test.context.bean.override.mockito
Classes in org.springframework.test.context.bean.override.mockito with annotations of type BeanOverrideModifier and TypeClassDescription@interface@MockitoBeanis an annotation that can be applied to a field in a test class to override a bean in the test'sApplicationContextusing a Mockito mock.@interfaceMark a field to trigger a bean override using a Mockito spy, which will wrap the original bean instance.