Package org.springframework.test.context.bean.override.mockito


@NonNullApi @NonNullFields package org.springframework.test.context.bean.override.mockito
Bean overriding mechanism based on Mockito mocking and spying.
  • Class
    Description
    @MockitoBean is an annotation that can be applied to a non-static field in a test class to override a bean in the test's ApplicationContext using a Mockito mock.
    TestExecutionListener that resets any mock beans that have been marked with a MockReset.
    @MockitoSpyBean is an annotation that can be applied to a non-static field in a test class to override a bean in the test's ApplicationContext with a Mockito spy that wraps the original bean instance.
    Reset strategy used on a mock bean.
    A MockResolver for testing Spring applications with Mockito.