Package org.jmock.lib.legacy
Class ClassImposteriser
- java.lang.Object
-
- org.jmock.lib.legacy.ClassImposteriser
-
- All Implemented Interfaces:
org.jmock.api.Imposteriser
public class ClassImposteriser extends java.lang.Object implements org.jmock.api.ImposteriserDeprecated.Java11 support is weak, Migrate to org.jmock.lib.imposters.ByteBuddyClassImposteriserThis class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.- Author:
- npryce
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassImposteriser.ClassWithSuperclassToWorkAroundCglibBugDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static org.jmock.api.ImposteriserINSTANCEDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanImposterise(java.lang.Class<?> type)Deprecated.<T> Timposterise(org.jmock.api.Invokable mockObject, java.lang.Class<T> mockedType, java.lang.Class<?>... ancilliaryTypes)Deprecated.
-
-
-
Method Detail
-
canImposterise
public boolean canImposterise(java.lang.Class<?> type)
Deprecated.- Specified by:
canImposterisein interfaceorg.jmock.api.Imposteriser
-
imposterise
public <T> T imposterise(org.jmock.api.Invokable mockObject, java.lang.Class<T> mockedType, java.lang.Class<?>... ancilliaryTypes)Deprecated.- Specified by:
imposterisein interfaceorg.jmock.api.Imposteriser
-
-