Class SubclassInjectionLoader.WithLookup

java.lang.Object
org.mockito.internal.creation.bytebuddy.SubclassInjectionLoader.WithLookup
All Implemented Interfaces:
SubclassLoader
Enclosing class:
SubclassInjectionLoader

private static class SubclassInjectionLoader.WithLookup extends Object implements SubclassLoader
  • Field Details

    • lookup

      private final Object lookup
    • codegenLookup

      private final Object codegenLookup
    • privateLookupIn

      private final Method privateLookupIn
  • Constructor Details

  • Method Details

    • isDisrespectingOpenness

      public boolean isDisrespectingOpenness()
      Description copied from interface: SubclassLoader
      Checks if this loader does not require a module to be open.
      Specified by:
      isDisrespectingOpenness in interface SubclassLoader
      Returns:
      true if this loader is not constraint to a target module being opened for loading a class.
    • resolveStrategy

      public net.bytebuddy.dynamic.loading.ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoader, boolean localMock)
      Description copied from interface: SubclassLoader
      Resolves a class loading strategy.
      Specified by:
      resolveStrategy in interface SubclassLoader
      Parameters:
      mockedType - The type being mocked.
      classLoader - The class loader being used.
      localMock - true if the mock is loaded within the runtime package of the mocked type.
      Returns:
      An appropriate class loading strategy.