Class DefaultNavigationFacadeTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.navigations.impl.DefaultNavigationFacadeTest
-
@UnitTest public class DefaultNavigationFacadeTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultNavigationFacadeTest()
-
Method Summary
-
-
-
Method Detail
-
setup
public void setup() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testFindAllNavigationNodes_will_return_list_of_all_navigation_nodes
public void testFindAllNavigationNodes_will_return_list_of_all_navigation_nodes()
-
testFindAllNavigationNodes_given_parent_will_return_the_root_nodes_if_parent_is_root
public void testFindAllNavigationNodes_given_parent_will_return_the_root_nodes_if_parent_is_root() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testFindAllNavigationNodes_given_parent_will_return_all_its_children_if_parent_is_not_root
public void testFindAllNavigationNodes_given_parent_will_return_all_its_children_if_parent_is_not_root() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_null
public void testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_null() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_not_valid
public void testFindAllNavigationNodes_given_parent_will_return_empty_if_parent_is_not_valid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testAddNavigationNode_success
public void testAddNavigationNode_success() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testAddNavigationNode_throw_validationexception_when_nodeis_is_null
public void testAddNavigationNode_throw_validationexception_when_nodeis_is_null() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testGetNavigationAncestorsAndSelf_will_return_its_ancestors_will_return_ancestry_if_not_root
public void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_will_return_ancestry_if_not_root() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_root
public void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_root() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_invalid
public void testGetNavigationAncestorsAndSelf_will_return_its_ancestors_empty_if_invalid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
testRecursivelyPopulateNavigationNodeAncestryList_success
public void testRecursivelyPopulateNavigationNodeAncestryList_success()
-
testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_invalid_uid
public void testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_invalid_uid()
-
testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_root_uid
public void testRecursivelyPopulateNavigationNodeAncestryList_returns_empty_for_root_uid()
-
createMockedNode
protected CMSNavigationNodeModel createMockedNode(java.lang.String nodeUid, CMSNavigationNodeModel parent)
-
createMockedRootNavigationNodes
protected java.util.List<CMSNavigationNodeModel> createMockedRootNavigationNodes()
-
createNavigationNode
protected NavigationNodeData createNavigationNode(java.lang.String nodeUid, java.lang.String parentUid)
-
-