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.
Solved! Go to Solution.
Hey Shiva,
Looks like you need to use unobfuscated uber jar to run this unit test [1](otherwise it won't compile and you would get the error you are getting now)
Regards,
Peter
Hey Shiva,
Looks like you need to use unobfuscated uber jar to run this unit test [1](otherwise it won't compile and you would get the error you are getting now)
Regards,
Peter
Hello Peter,
Thank you for the information..
Regards,
Shivamurthy MN
Views
Replies
Total Likes
HI PuzanovsP,
Thanks for posting, it helps me also.
Views
Replies
Total Likes
Hi,
I'm facing similar issue after 6.3 upgrade even though i'm using obfuscated-apis.
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.3.0</version>
<classifier>obfuscated-apis</classifier>
<scope>provided</scope>
java.lang.VerifyError: Constructor must call super() or this() before return
Exception Details:
Location:
com/adobe/cq/sightly/WCMUsePojo.<init>()V @1: return
Reason:
Error exists in the bytecode
Bytecode:
0x0000000: 2ab1
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies