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
@TestBean
is an annotation that can be applied to a non-static field in a test class to override a bean in the test'sApplicationContext
using 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
@MockitoBean
is an annotation that can be used in test classes to override a bean in the test'sApplicationContext
with a Mockito mock.@interface
@MockitoSpyBean
is an annotation that can be used in test classes to override a bean in the test'sApplicationContext
with a Mockito spy that wraps the original bean instance.