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. Resolves mocks by returning the ultimate target object of the instance.
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