org.qi4j.test.mock.internal
Interface MockResolver
- All Known Implementing Classes:
- MethodClassMatcherMockResolver, MockResolverProxy, UnresolvableMockResolver
public interface MockResolver
Resolves the invocation handler for a registred mock. Actual matching method is specific to each implementation.
getInvocationHandler
InvocationHandler getInvocationHandler(Object proxy,
Method method,
Object[] args)
- Matches the method invocation to an invocation handler for a registered mock.
- Parameters:
proxy
- object on which the method was invokedmethod
- invoked methodargs
- invocation arguments
- Returns:
- invocation handler if this resolved can handle the call or null otherwise.