@UnitTest public class DefaultRestrictionContextProviderTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultRestrictionContextProviderTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
givenNoRestrictionInSession_WhenGetIsCalled_ThenItReturnsNull() |
void |
givenNoRestrictionInSession_WhenSetMethodCalled_ThenItSetsARestrictionInTheSession() |
void |
givenRestrictionInSession_WhenGetIsCalled_ThenItReturnsTheRestriction() |
void |
givenRestrictionInSession_WhenSetMethodCalled_ThenItOverridesRestrictionInTheSession() |
protected void |
setValueInSession(RestrictionData data) |
void |
WhenRemoveIsCalled_ThenItRemovesRestriction() |
public DefaultRestrictionContextProviderTest()
public void givenNoRestrictionInSession_WhenGetIsCalled_ThenItReturnsNull()
public void givenRestrictionInSession_WhenGetIsCalled_ThenItReturnsTheRestriction()
public void givenNoRestrictionInSession_WhenSetMethodCalled_ThenItSetsARestrictionInTheSession()
public void givenRestrictionInSession_WhenSetMethodCalled_ThenItOverridesRestrictionInTheSession()
public void WhenRemoveIsCalled_ThenItRemovesRestriction()
protected void setValueInSession(RestrictionData data)
Copyright © 2018 SAP SE. All Rights Reserved.