Package samples.innerclassmocking
Class ClassWithPrivateInnerClass
- java.lang.Object
-
- samples.innerclassmocking.ClassWithPrivateInnerClass
-
public class ClassWithPrivateInnerClass extends java.lang.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?!).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ClassWithPrivateInnerClass.InnerClass
-
Constructor Summary
Constructors Constructor Description ClassWithPrivateInnerClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
-