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
protected void testMaxItems() {
List list = getListUnderTest(LIST_11);
checkListConsistencyByTitle(list, new String[] { "Page 1" });
Utils.testJSONExport(list, Utils.getTestExporterJSONPath(testBase, LIST_11));
}
use of com.adobe.cq.wcm.core.components.models.List in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListImplTest method testChildrenListType.
@Test
protected void testChildrenListType() {
List list = getListUnderTest(LIST_3);
checkListConsistencyByPaths(list, new String[] { "/content/list/pages/page_1/page_1_1", "/content/list/pages/page_1/page_1_2", "/content/list/pages/page_1/page_1_3" });
Utils.testJSONExport(list, Utils.getTestExporterJSONPath(testBase, LIST_3));
}
use of com.adobe.cq.wcm.core.components.models.List in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListImplTest method testOrderByModificationDateWithNoModificationDate.
@Test
protected void testOrderByModificationDateWithNoModificationDate() {
List list = getListUnderTest(LIST_12);
checkListConsistencyByTitle(list, new String[] { "Page 1.1", "Page 1.2" });
}
use of com.adobe.cq.wcm.core.components.models.List in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListImplTest method testOrderByTitleWithAccent.
@Test
public void testOrderByTitleWithAccent() {
List list = getListUnderTest(LIST_16);
checkListConsistencyByPaths(list, new String[] { "/content/list/pages/page_1", "/content/list/pages/page_5", "/content/list/pages/page_2" });
}
use of com.adobe.cq.wcm.core.components.models.List in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListImplTest method testProperties.
@Test
protected void testProperties() {
List list = getListUnderTest(LIST_1);
assertTrue(list.showDescription());
assertTrue(list.showModificationDate());
assertTrue(list.linkItems());
assertTrue(list.linkItems());
assertEquals(2, list.getListItems().size());
Utils.testJSONExport(list, Utils.getTestExporterJSONPath(TEST_BASE, LIST_1));
}
Aggregations