Class DefaultSearchRestrictionServiceTest
java.lang.Object
de.hybris.platform.search.restriction.impl.DefaultSearchRestrictionServiceTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidTest method forDefaultSearchRestrictionService.clearSessionSearchRestrictions().voidTest method forDefaultSearchRestrictionService.disableSearchRestrictions().voidTest method forDefaultSearchRestrictionService.enableSearchRestrictions().voidTest method forDefaultSearchRestrictionService.getSessionSearchRestrictions()voidvoidTest method forDefaultSearchRestrictionService.getSessionSearchRestrictions()voidvoidvoid
-
Constructor Details
-
DefaultSearchRestrictionServiceTest
public DefaultSearchRestrictionServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testAddSessionSearchRestrictions
public void testAddSessionSearchRestrictions()Test method forDefaultSearchRestrictionService.addSessionSearchRestrictions(java.util.Collection)Checks for setting restrictions collection when there was no restrictions in the session at all.
-
testAddSessionSearchRestrictionsEmptyCollectionInitial
public void testAddSessionSearchRestrictionsEmptyCollectionInitial()Test method forDefaultSearchRestrictionService.addSessionSearchRestrictions(java.util.Collection)Checks for setting empty restrictions collection when there was no restrictions in the session at all.
-
testAddSessionSearchRestrictionsWithNullParameter
public void testAddSessionSearchRestrictionsWithNullParameter() -
testClearSessionSearchRestrictions
public void testClearSessionSearchRestrictions()Test method forDefaultSearchRestrictionService.clearSessionSearchRestrictions(). -
testDisableSearchRestrictions
public void testDisableSearchRestrictions()Test method forDefaultSearchRestrictionService.disableSearchRestrictions(). -
testEnableSearchRestrictions
public void testEnableSearchRestrictions()Test method forDefaultSearchRestrictionService.enableSearchRestrictions(). -
testGetSessionSearchRestrictions
public void testGetSessionSearchRestrictions()Test method forDefaultSearchRestrictionService.getSessionSearchRestrictions()Test getting sessions search restrictions when currently there are some restrictions in the session.
-
testHasRestrictions
public void testHasRestrictions() -
testGetSessionSearchRestrictionsForType
public void testGetSessionSearchRestrictionsForType() -
testGetSessionSearchRestrictionsInitial
public void testGetSessionSearchRestrictionsInitial()Test method forDefaultSearchRestrictionService.getSessionSearchRestrictions()Test getting sessions search restrictions when currently there is no sessions search restrictions at all.
-
testIsSearchRestrictionsEnabled
public void testIsSearchRestrictionsEnabled() -
testRemoveSessionSearchRestrictions
public void testRemoveSessionSearchRestrictions() -
shouldNotThrowExceptionWhenCurrentFiltersAreNull
public void shouldNotThrowExceptionWhenCurrentFiltersAreNull()
-