public class MockPlayerMixin extends Object implements InvocationHandler
MockPlayerConcern can be used.
MockResolver player mixin will delegate method invocations to registered mocks. Mocks can be registered by using
MockComposite.
If there is no mock registered to handle the method invocation invocation will fail by throwing an
IllegalStateException.| Constructor and Description |
|---|
MockPlayerMixin() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Finds a registered mock that can handle the method invocation and delegate to it.
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableInvocationHandler.invoke(Object, java.lang.reflect.Method, Object[])