public class IsConsentRequiredPredicateTest extends Object
IsConsentRequiredPredicate unit test.| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate |
p |
private ProfileRequestContext |
prc |
private org.springframework.webflow.execution.RequestContext |
src |
| Constructor and Description |
|---|
IsConsentRequiredPredicateTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
private void |
setUpDescriptor(boolean compareValues)
Add a
ConsentFlowDescriptor to the ProfileRequestContext. |
private void |
setUpInCurrentButNotPreviousConsents()
Set up consent context where a consent object exists as a current consent but not a previous consent.
|
private void |
setUpInPreviousAndCurrentConsentsWithDifferentValue()
Set up consent context where a consent object exists as a current consent and a previous consent with different
values.
|
private void |
setUpInPreviousButNotCurrentConsents()
Set up consent context where a consent object exists as a previous consent but not a current consent.
|
private void |
setUpMatchingPreviousAndCurrentConsents()
Set up consent context where the previous and current consents are the same.
|
void |
testInCurrentButNotPreviousConsents() |
void |
testInCurrentButNotPreviousConsentsCompareValues() |
void |
testInPreviousAndCurrentConsentsWithDifferentValue() |
void |
testInPreviousAndCurrentConsentsWithDifferentValueCompareValues() |
void |
testInPreviousButNotCurrentConsents() |
void |
testInPreviousButNotCurrentConsentsCompareValues() |
void |
testMatchingPreviousAndCurrentConsents() |
void |
testMatchingPreviousAndCurrentConsentsCompareValues() |
void |
testNoCurrentConsents() |
void |
testNoPreviousConsents() |
void |
testNullConsentContext() |
void |
testNullConsentFlowDescriptor() |
void |
testNullInput() |
private org.springframework.webflow.execution.RequestContext src
private ProfileRequestContext prc
private net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate p
private void setUpDescriptor(boolean compareValues)
ConsentFlowDescriptor to the ProfileRequestContext.compareValues - whether consent equality includes comparing consent valuesprivate void setUpMatchingPreviousAndCurrentConsents()
private void setUpInPreviousButNotCurrentConsents()
private void setUpInCurrentButNotPreviousConsents()
private void setUpInPreviousAndCurrentConsentsWithDifferentValue()
public void testNullInput()
public void testNullConsentContext()
public void testNullConsentFlowDescriptor()
public void testNoPreviousConsents()
public void testNoCurrentConsents()
public void testMatchingPreviousAndCurrentConsents()
public void testInPreviousButNotCurrentConsents()
public void testInCurrentButNotPreviousConsents()
public void testMatchingPreviousAndCurrentConsentsCompareValues()
public void testInPreviousButNotCurrentConsentsCompareValues()
public void testInCurrentButNotPreviousConsentsCompareValues()
public void testInPreviousAndCurrentConsentsWithDifferentValue()
public void testInPreviousAndCurrentConsentsWithDifferentValueCompareValues()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.