I am facing issue if my model class has multifield functionality for an examplein above case my model class LocationsModel.javapublic class LocationsModel extends ComponentModel implements Validatable { @ChildResourceFromRequest private final List<LocationItem> locations = emptyList();
Hi Arun, Below is the snippet of my model class@Model( adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)public class LocationsModel extends ComponentModel implements Validatable { private static final Logger log = LoggerFactory...
Hi Arun,scenerio is different in my case I am using adaptTo() method to create a model object which is not working if we have nested dailog box.Below is my Test class code snnipet. adaptTo method throwing null pointer exception if model class has nested implemention.class AccordionListModelTest { ...
I am new to implement AEM Mockito testing and want to write junit test cases for nested dailog box for an example We have one model class "AccordionListModel" which contain the list of "AccordionModel"While writing Junit not getting model class reference (AccordionListModel.java) via adaptTo methodB...