Expand my Community achievements bar.

java.lang.VerifyError: AEM Mock

Avatar

Level 5

Hi,

I am having below line in my test case.

Page page = context.pageManager().create("/content/sample/en", "test1",

"/apps/sample/templates/homepage", "title1");

But I am getting below error when execute:

java.lang.VerifyError: (class: com/day/cq/wcm/api/WCMException, method: <init> signature: (Ljava/lang/Throwable;)V) Constructor must call super() or this()

Below is the document I am refering :

Usage | AEM Mocks

How can i solve that issue.

Thanks,

1 Reply

Avatar

Level 9

Hi,

Issue is not in this line. Error message says about init method. Check that. And if you still face issue, you can entire class code here. we can help you.

Regards,

Jitendra