WCmUse / WCMUsePojo mocking in Junit
Hi All,
Have anybody implemented JUnit test cases for classes which are extending to WCMUsePojo?
I am getting below error while mocking WCMUsePojo..
java.lang.VerifyError: Constructor must call super() or this() before return
Exception Details:
Location:
com/adobe/cq/sightly/WCMUsePojo.<init>()V @9: return
Please provide some inputs why this exception.
FYI : I am using Mockito for mocking.
Thanks in Advance.