Class DefaultRestrictionContextProviderTest


  • @UnitTest
    public class DefaultRestrictionContextProviderTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultRestrictionContextProviderTest

        public DefaultRestrictionContextProviderTest()
    • Method Detail

      • 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)