org.jmock.lib.legacy
Class ClassImposteriser

java.lang.Object
  extended by org.jmock.lib.legacy.ClassImposteriser
All Implemented Interfaces:
org.jmock.api.Imposteriser

public class ClassImposteriser
extends java.lang.Object
implements org.jmock.api.Imposteriser

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

Author:
npryce

Nested Class Summary
static class ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug
           
 
Field Summary
static org.jmock.api.Imposteriser INSTANCE
           
 
Method Summary
 boolean canImposterise(java.lang.Class<?> type)
           
<T> T
imposterise(org.jmock.api.Invokable mockObject, java.lang.Class<T> mockedType, java.lang.Class<?>... ancilliaryTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final org.jmock.api.Imposteriser INSTANCE
Method Detail

canImposterise

public boolean canImposterise(java.lang.Class<?> type)
Specified by:
canImposterise in interface org.jmock.api.Imposteriser

imposterise

public <T> T imposterise(org.jmock.api.Invokable mockObject,
                         java.lang.Class<T> mockedType,
                         java.lang.Class<?>... ancilliaryTypes)
Specified by:
imposterise in interface org.jmock.api.Imposteriser


Copyright © 2003-2008 jMock. All Rights Reserved.