Class DefaultRestrictionContextProviderTest

java.lang.Object
de.hybris.platform.cmsfacades.rendering.impl.DefaultRestrictionContextProviderTest

@UnitTest public class DefaultRestrictionContextProviderTest extends Object
  • Constructor Details

    • DefaultRestrictionContextProviderTest

      public DefaultRestrictionContextProviderTest()
  • Method Details

    • givenNoRestrictionInSession_WhenGetIsCalled_ThenItReturnsNull

      public void givenNoRestrictionInSession_WhenGetIsCalled_ThenItReturnsNull()
    • givenRestrictionInSession_WhenGetIsCalled_ThenItReturnsTheRestriction

      public void givenRestrictionInSession_WhenGetIsCalled_ThenItReturnsTheRestriction()
    • givenNoRestrictionInSession_WhenSetMethodCalled_ThenItSetsARestrictionInTheSession

      public void givenNoRestrictionInSession_WhenSetMethodCalled_ThenItSetsARestrictionInTheSession()
    • givenRestrictionInSession_WhenSetMethodCalled_ThenItOverridesRestrictionInTheSession

      public void givenRestrictionInSession_WhenSetMethodCalled_ThenItOverridesRestrictionInTheSession()
    • WhenRemoveIsCalled_ThenItRemovesRestriction

      public void WhenRemoveIsCalled_ThenItRemovesRestriction()
    • setValueInSession

      protected void setValueInSession(RestrictionData data)