class SubclassInjectionLoader extends java.lang.Object implements SubclassLoader
Modifier and Type | Class and Description |
---|---|
private static class |
SubclassInjectionLoader.WithLookup |
private static class |
SubclassInjectionLoader.WithReflection |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ERROR_MESSAGE |
private SubclassLoader |
loader |
Constructor and Description |
---|
SubclassInjectionLoader() |
Modifier and Type | Method and Description |
---|---|
net.bytebuddy.dynamic.loading.ClassLoadingStrategy<java.lang.ClassLoader> |
resolveStrategy(java.lang.Class<?> mockedType,
java.lang.ClassLoader classLoader,
boolean codegen)
Resolves a class loading strategy.
|
private static SubclassLoader |
tryLookup() |
private static final java.lang.String ERROR_MESSAGE
private final SubclassLoader loader
private static SubclassLoader tryLookup()
public net.bytebuddy.dynamic.loading.ClassLoadingStrategy<java.lang.ClassLoader> resolveStrategy(java.lang.Class<?> mockedType, java.lang.ClassLoader classLoader, boolean codegen)
SubclassLoader
resolveStrategy
in interface SubclassLoader
mockedType
- The type being mocked.classLoader
- The class loader being used.codegen
- true
if the mock is loaded in the org.mockito.codegen
package.