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 theMockito
-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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
resolve(java.lang.Object instance)
Returns the provided instance or the unwrapped mock that the provided instance represents.
-
-
-
Method Detail
-
resolve
java.lang.Object resolve(java.lang.Object instance)
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.
-
-