org.easymock.internal
Class ClassExtensionHelper

java.lang.Object
  extended by org.easymock.internal.ClassExtensionHelper

public final class ClassExtensionHelper
extends Object

Author:
Henri Tremblay

Method Summary
static MocksControl getControl(Object mock)
           
static ConstructorArgs getCurrentConstructorArgs()
           
static ClassProxyFactory.MockMethodInterceptor getInterceptor(Object mock)
           
static
<T,V extends T>
Class<T>
getMockedType(V proxy)
          Return the class of interface (depending on the mock type) that was mocked
static void setCurrentConstructorArgs(ConstructorArgs args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 class
V - Mock class
Parameters:
proxy - Mock object
Returns:
the mocked class or interface


Copyright © 2001-2011 OFFIS, Tammo Freese, Henri Tremblay. All Rights Reserved.