Logo Search packages:      
Sourcecode: jmock2 version File versions  Download package

org::jmock::lib::legacy::ClassImposteriser Class Reference

Inheritance diagram for org::jmock::lib::legacy::ClassImposteriser:

org::jmock::api::Imposteriser

List of all members.


Detailed Description

This class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.

Author:
npryce

Definition at line 32 of file ClassImposteriser.java.


Public Member Functions

boolean canImposterise (Class<?> type)
< T > T imposterise (Invokable mockObject, Class< T > mockedType, Class<?>...ancilliaryTypes)

Static Public Attributes

static final Imposteriser INSTANCE = new ClassImposteriser()

Package Functions

private< T > Class<?> createProxyClass (Class<?> mockedType, Class<?>...ancilliaryTypes)
public< T > T imposterise (final Invokable mockObject, Class< T > mockedType, Class<?>...ancilliaryTypes)

Private Member Functions

Object createProxy (Class<?> proxyClass, final Invokable mockObject)
Class<?>[] prepend (Class<?> first, Class<?>...rest)
void setConstructorsAccessible (Class<?> mockedType, boolean accessible)
boolean toStringMethodIsFinal (Class<?> type)

Private Attributes

final Objenesis objenesis = new ObjenesisStd()

Static Private Attributes

static final CallbackFilter IGNORE_BRIDGE_METHODS
static final NamingPolicy NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES

Classes

class  ClassWithSuperclassToWorkAroundCglibBug

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index