Class LeavesOrClosestAncestorsCatalogsLookupStrategyTest
- java.lang.Object
-
- de.hybris.platform.personalizationcms.strategy.LeavesOrClosestAncestorsCatalogsLookupStrategyTest
-
@UnitTest public class LeavesOrClosestAncestorsCatalogsLookupStrategyTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LeavesOrClosestAncestorsCatalogsLookupStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertCatalogsVersions(int maxRecursions, java.util.List<CatalogVersionModel> cvsInSession, java.util.List<CatalogVersionModel> cvsWithPersonalization, java.util.List<CatalogVersionModel> assertionResults)voidsetupTest()voidshouldHandleBrokenHierarchy()This should not happen, but just making sure we dont get a stack overflow in this case.voidshouldReturnClosestParentsWhenRecursionIs10()voidshouldReturnLeavesCatalogWhenRecursionIs0()
-
-
-
Method Detail
-
setupTest
public void setupTest()
-
shouldReturnLeavesCatalogWhenRecursionIs0
public void shouldReturnLeavesCatalogWhenRecursionIs0()
-
shouldReturnClosestParentsWhenRecursionIs10
public void shouldReturnClosestParentsWhenRecursionIs10()
-
shouldHandleBrokenHierarchy
public void shouldHandleBrokenHierarchy()
This should not happen, but just making sure we dont get a stack overflow in this case.
-
assertCatalogsVersions
protected void assertCatalogsVersions(int maxRecursions, java.util.List<CatalogVersionModel> cvsInSession, java.util.List<CatalogVersionModel> cvsWithPersonalization, java.util.List<CatalogVersionModel> assertionResults)
-
-