Class SpringBootMockResolver

java.lang.Object
org.springframework.boot.test.mock.mockito.SpringBootMockResolver
All Implemented Interfaces:
org.mockito.plugins.MockResolver

@Deprecated(since="3.4.0", forRemoval=true) public class SpringBootMockResolver extends Object implements org.mockito.plugins.MockResolver
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.4.0 for removal in 3.6.0 in favor of Spring Framework's MockitoBean and MockitoSpyBean
A MockResolver for testing Spring Boot applications with Mockito. It resolves mocks by walking the proxy chain until the target or a non-static proxy is found.
Since:
2.4.0
Author:
Andy Wilkinson
  • Constructor Details

    • SpringBootMockResolver

      public SpringBootMockResolver()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • resolve

      public Object resolve(Object instance)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      resolve in interface org.mockito.plugins.MockResolver