use of org.powermock.api.mockito.repackaged.cglib.proxy.Callback in project powermock by powermock.
the class CglibMockMaker method getHandler.
public MockHandler getHandler(Object mock) {
if (!(mock instanceof Factory)) {
return null;
}
Factory factory = (Factory) mock;
Callback callback = factory.getCallback(0);
if (!(callback instanceof MethodInterceptorFilter)) {
return null;
}
return ((MethodInterceptorFilter) callback).getHandler();
}