@UnitTest public class DefaultNavigationFacadeTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultNavigationFacadeTest() |
public void setup()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testFindAllNavigationNodes_will_return_list_of_all_navigation_nodes()
public void testFindAllNavigationNodes_given_parent_will_return_the_root_nodes_if_parent_is_root()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testFindAllNavigationNodes_given_parent_will_return_all_its_children_if_parent_is_not_root()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_null()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_not_valid()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testAddNavigationNode_success()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testAddNavigationNode_throw_validationexception_when_nodeis_is_null()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_will_return_ancestry_if_not_root()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_root()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_invalid()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void testRecursivelyPopulateNavigationNodeAncestryList_success()
public void testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_invalid_uid()
public void testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_root_uid()
protected CMSNavigationNodeModel createMockedNode(java.lang.String nodeUid, CMSNavigationNodeModel parent)
protected java.util.List<CMSNavigationNodeModel> createMockedRootNavigationNodes()
protected NavigationNodeData createNavigationNode(java.lang.String nodeUid, java.lang.String parentUid)
Copyright © 2018 SAP SE. All Rights Reserved.