Class JdkClassInfoProvider
java.lang.Object
org.easymock.internal.classinfoprovider.JdkClassInfoProvider
- All Implemented Interfaces:
ClassInfoProvider
Provider to use when classes are from the JDK or if they have no package. In this case, we create the mock in the
"org.easymock.mocks" package and in EasyMock 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
-
JdkClassInfoProvider
public JdkClassInfoProvider()
-
-
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
-