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.public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
InvocationHandler.invoke(Object, java.lang.reflect.Method, Object[])