use of com.adobe.cq.wcm.core.components.models.List in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListImplTest method testMaxItems.
@Test
public void testMaxItems() throws Exception {
Resource resource = context.currentResource("/content/list/listTypes/staticMaxItemsListType");
slingBindings.put(WCMBindings.PROPERTIES, resource.adaptTo(ValueMap.class));
slingBindings.put(WCMBindings.CURRENT_STYLE, new MockStyle(resource));
List list = context.request().adaptTo(List.class);
checkListConsistency(list, new String[] { "Page 1" });
}
Aggregations