Package org.jmock.imposters
Class ByteBuddyClassImposteriser
- java.lang.Object
-
- org.jmock.imposters.ByteBuddyClassImposteriser
-
- All Implemented Interfaces:
org.jmock.api.Imposteriser
public class ByteBuddyClassImposteriser extends java.lang.Object implements org.jmock.api.ImposteriserThis class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.- Author:
- olibye
-
-
Field Summary
Fields Modifier and Type Field Description static org.jmock.api.ImposteriserINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanImposterise(java.lang.Class<?> type)<T> Timposterise(org.jmock.api.Invokable mockObject, java.lang.Class<T> mockedType, java.lang.Class<?>... ancilliaryTypes)
-
-
-
Method Detail
-
canImposterise
public boolean canImposterise(java.lang.Class<?> type)
- 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)- Specified by:
imposterisein interfaceorg.jmock.api.Imposteriser
-
-