use of com.adobe.cq.wcm.core.components.models.NavigationItem in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class LanguageNavigationImplTest method testLanguageNavigationItemsStructureDepthContentPolicy.
@Test
protected void testLanguageNavigationItemsStructureDepthContentPolicy() {
context.contentPolicyMapping(resourceType, "siteRoot", "/content/languagenavigation", "structureDepth", 2);
LanguageNavigation languageNavigation = getLanguageNavigationUnderTest(NAVIGATION_ROOT + "/LOCALE-1/LOCALE-5/about/jcr:content/root/languagenavigation-component-3");
List<NavigationItem> items = getLanguageNavigationItems(languageNavigation);
verifyLanguageNavigationItems(EXPECTED_PAGES_DEPTH_2, items);
Utils.testJSONExport(languageNavigation, Utils.getTestExporterJSONPath(testBase, "languagenavigation3"));
}
use of com.adobe.cq.wcm.core.components.models.NavigationItem in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class LanguageNavigationImplTest method testLanguageNavigationItemsStructureDepth.
@Test
protected void testLanguageNavigationItemsStructureDepth() {
LanguageNavigation languageNavigation = getLanguageNavigationUnderTest(NAVIGATION_ROOT + "/LOCALE-1/LOCALE-5/about/jcr:content/root/languagenavigation-component-2");
List<NavigationItem> items = getLanguageNavigationItems(languageNavigation);
verifyLanguageNavigationItems(EXPECTED_PAGES_DEPTH_2, items);
Utils.testJSONExport(languageNavigation, Utils.getTestExporterJSONPath(testBase, "languagenavigation2"));
}
Aggregations