Пример #1
0
 @Override
 @SuppressWarnings("rawtypes")
 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) {
   InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock);
   adapter.setHandler(newHandler);
 }
Пример #2
0
 @Override
 public MockHandler getHandler(Object mock) {
   InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock);
   return adapter != null ? adapter.getHandler() : null;
 }