Package org.mockito.plugins
Interface MockResolver
public interface MockResolver
A mock resolver offers an opportunity to resolve a mock from any instance that is
provided to the
Mockito
-DSL. This mechanism can be used by
frameworks that provide mocks that are implemented by Mockito but which are wrapped
by other instances to enhance the proxy further.-
Method Summary
-
Method Details
-
resolve
Returns the provided instance or the unwrapped mock that the provided instance represents. This method must not returnnull
.- Parameters:
instance
- The instance passed to theMockito
-DSL.- Returns:
- The provided instance or the unwrapped mock.
-