Unable to get Content Fragment value in the form of an Object
Description
Activity
Show:

John Doe April 6, 2021 at 4:59 PM
My apologies, this was created in the wrong project. It was meant for WTES.
Details
Details
Assignee
Unassigned
UnassignedReporter

Components
Priority
Created April 6, 2021 at 4:56 PM
Updated April 6, 2021 at 4:59 PM
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.