Hi There,
I am getting the below error while mocking content fragment in mockito.
Error :
java.lang.AbstractMethodError: io.wcm.testing.mock.aem.MockContentFragment_ContentElement_Structured.getValue()Lcom/adobe/cq/dam/cfm/FragmentData;
Code Snippet :
ContentElement content = contentFragment.get().getElement("somefragment");
FragmentData data = content.getValue();
List<String> someFragmentList = Arrays.asList((String[]) data.getValue());
I can see that contentFragment is not null. And content is also not null but when it is executing "content.getValue()" it is throwing the error.
Please do share your thoughts on the same.
Thanks,
Ravi Joshi