Class SubclassInjectionLoader.WithReflection

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WithReflection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WithReflection

        private WithReflection()
    • Method Detail

      • resolveStrategy

        public net.bytebuddy.dynamic.loading.ClassLoadingStrategy<java.lang.ClassLoader> resolveStrategy​(java.lang.Class<?> mockedType,
                                                                                                         java.lang.ClassLoader classLoader,
                                                                                                         boolean codegen)
        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.
        codegen - true if the mock is loaded in the org.mockito.codegen package.
        Returns:
        An appropriate class loading strategy.