org.easymock.internal
Class ClassExtensionHelper
java.lang.Object
org.easymock.internal.ClassExtensionHelper
public final class ClassExtensionHelper
- extends Object
- Author:
- Henri Tremblay
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setCurrentConstructorArgs
public static void setCurrentConstructorArgs(ConstructorArgs args)
getCurrentConstructorArgs
public static ConstructorArgs getCurrentConstructorArgs()
getInterceptor
public static ClassProxyFactory.MockMethodInterceptor getInterceptor(Object mock)
getControl
public static MocksControl getControl(Object mock)
getMockedType
public static <T,V extends T> Class<T> getMockedType(V proxy)
- Return the class of interface (depending on the mock type) that was
mocked
- Type Parameters:
T
- Mocked classV
- Mock class- Parameters:
proxy
- Mock object
- Returns:
- the mocked class or interface
Copyright © 2001-2011 OFFIS, Tammo Freese, Henri Tremblay. All Rights Reserved.