Unable to get Content Fragment value in the form of an Object

Description

In order to get Object properties such as arrays or dates from my content fragments, I call contentFragment.getElement(fieldName).getValue().getValue(). However, these getValue() calls are not supported in https://github.com/wcm-io/wcm-io-testing/blob/develop/aem-mock/core/src/main/java/io/wcm/testing/mock/aem/MockContentFragment_ContentElement_Structured.java, so it cannot be tested.

getContent() is available, but this only returns a String and thus is not the appropriate method I need.

Activity

Show:

Details

Assignee

Reporter

Components

Priority

Created August 11, 2021 at 2:02 PM
Updated August 11, 2021 at 2:02 PM