ClassExtensionHelper (EasyMock 3.1 API)
Date: 2011-11-10

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.easymock.internal
Class ClassExtensionHelper

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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