Highlighted

java.lang.VerifyError: AEM Mock

vdhim23

26-06-2017

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,

Replies

Highlighted

Jitendra_S_Toma

26-06-2017

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