Class SpringBootMockResolver

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

public class SpringBootMockResolver extends Object implements org.mockito.plugins.MockResolver
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()
  • Method Details

    • resolve

      public Object resolve(Object instance)
      Specified by:
      resolve in interface org.mockito.plugins.MockResolver