Class DefaultClassInfoProvider
java.lang.Object
org.easymock.internal.classinfoprovider.DefaultClassInfoProvider
- All Implemented Interfaces:
ClassInfoProvider
Provider to use when classes are not in the JDK. In this case, we create the mock in the package of the mocked class
and in it's class loader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ClassLoaderclassLoader(Class<T> toMock) Returns the class loader where the mock should be created.classPackage(Class<?> toMock) Returns the package where the mock should be created.toString()
-
Constructor Details
-
DefaultClassInfoProvider
public DefaultClassInfoProvider()
-
-
Method Details
-
classPackage
Description copied from interface:ClassInfoProviderReturns the package where the mock should be created.- Specified by:
classPackagein interfaceClassInfoProvider- Parameters:
toMock- the class to mock- Returns:
- the package name
-
classLoader
Description copied from interface:ClassInfoProviderReturns the class loader where the mock should be created.- Specified by:
classLoaderin interfaceClassInfoProvider- Type Parameters:
T- type of the class to mock- Parameters:
toMock- the class to mock- Returns:
- the class loader where the mock should be created
-
toString
-