Class ClassWithPrivateInnerClass

java.lang.Object
samples.innerclassmocking.ClassWithPrivateInnerClass

public class ClassWithPrivateInnerClass extends Object
Used for demonstration of the ability to mock methods from a private inner class. Due to limitations in Javassist (which doesn't seem to load inner classes correctly??) we cannot mock private methods in inner classes. It doesn't seem to have any effect when modifing the method modifier and setting the method to public when loading the class by the mock class loader (but why? Could be because the outer class has already been loaded?!).
  • Constructor Details

    • ClassWithPrivateInnerClass

      public ClassWithPrivateInnerClass()
  • Method Details

    • getMessage

      public String getMessage()