Class IsConsentRequiredPredicateTest
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicateTest
-
public class IsConsentRequiredPredicateTest extends Object
IsConsentRequiredPredicateunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicatepprivate org.opensaml.profile.context.ProfileRequestContextprcprivate RequestContextsrc
-
Constructor Summary
Constructors Constructor Description IsConsentRequiredPredicateTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()private voidsetUpDescriptor(boolean compareValues)Add aConsentFlowDescriptorto theProfileRequestContext.private voidsetUpInCurrentButNotPreviousConsents()Set up consent context where a consent object exists as a current consent but not a previous consent.private voidsetUpInPreviousAndCurrentConsentsWithDifferentValue()Set up consent context where a consent object exists as a current consent and a previous consent with different values.private voidsetUpInPreviousButNotCurrentConsents()Set up consent context where a consent object exists as a previous consent but not a current consent.private voidsetUpMatchingPreviousAndCurrentConsents()Set up consent context where the previous and current consents are the same.voidtestInCurrentButNotPreviousConsents()voidtestInCurrentButNotPreviousConsentsCompareValues()voidtestInPreviousAndCurrentConsentsWithDifferentValue()voidtestInPreviousAndCurrentConsentsWithDifferentValueCompareValues()voidtestInPreviousButNotCurrentConsents()voidtestInPreviousButNotCurrentConsentsCompareValues()voidtestMatchingPreviousAndCurrentConsents()voidtestMatchingPreviousAndCurrentConsentsCompareValues()voidtestNoCurrentConsents()voidtestNoPreviousConsents()voidtestNullConsentContext()voidtestNullConsentFlowDescriptor()voidtestNullInput()
-
-
-
Field Detail
-
src
private RequestContext src
-
prc
private org.opensaml.profile.context.ProfileRequestContext prc
-
p
private net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate p
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws Exception
- Throws:
Exception
-
setUpDescriptor
private void setUpDescriptor(boolean compareValues)
Add aConsentFlowDescriptorto theProfileRequestContext.- Parameters:
compareValues- whether consent equality includes comparing consent values
-
setUpMatchingPreviousAndCurrentConsents
private void setUpMatchingPreviousAndCurrentConsents()
Set up consent context where the previous and current consents are the same. This would be the situation when the attributes being released have not changed.
-
setUpInPreviousButNotCurrentConsents
private void setUpInPreviousButNotCurrentConsents()
Set up consent context where a consent object exists as a previous consent but not a current consent. This would be the situation when an attribute was previously released but not currently.
-
setUpInCurrentButNotPreviousConsents
private void setUpInCurrentButNotPreviousConsents()
Set up consent context where a consent object exists as a current consent but not a previous consent. This would be the situation when a new attribute is released.
-
setUpInPreviousAndCurrentConsentsWithDifferentValue
private void setUpInPreviousAndCurrentConsentsWithDifferentValue()
Set up consent context where a consent object exists as a current consent and a previous consent with different values. This would be the situation when a released attribute's value has changed.
-
testNullInput
public void testNullInput()
-
testNullConsentContext
public void testNullConsentContext()
-
testNullConsentFlowDescriptor
public void testNullConsentFlowDescriptor()
-
testNoPreviousConsents
public void testNoPreviousConsents()
-
testNoCurrentConsents
public void testNoCurrentConsents()
-
testMatchingPreviousAndCurrentConsents
public void testMatchingPreviousAndCurrentConsents()
-
testInPreviousButNotCurrentConsents
public void testInPreviousButNotCurrentConsents()
-
testInCurrentButNotPreviousConsents
public void testInCurrentButNotPreviousConsents()
-
testMatchingPreviousAndCurrentConsentsCompareValues
public void testMatchingPreviousAndCurrentConsentsCompareValues()
-
testInPreviousButNotCurrentConsentsCompareValues
public void testInPreviousButNotCurrentConsentsCompareValues()
-
testInCurrentButNotPreviousConsentsCompareValues
public void testInCurrentButNotPreviousConsentsCompareValues()
-
testInPreviousAndCurrentConsentsWithDifferentValue
public void testInPreviousAndCurrentConsentsWithDifferentValue()
-
testInPreviousAndCurrentConsentsWithDifferentValueCompareValues
public void testInPreviousAndCurrentConsentsWithDifferentValueCompareValues()
-
-