Class IsConsentRequiredPredicateTest


  • public class IsConsentRequiredPredicateTest
    extends Object
    IsConsentRequiredPredicate unit test.
    • Field Detail

      • prc

        private org.opensaml.profile.context.ProfileRequestContext prc
      • p

        private net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate p
    • Constructor Detail

      • IsConsentRequiredPredicateTest

        public IsConsentRequiredPredicateTest()
    • Method Detail

      • setUpDescriptor

        private void setUpDescriptor​(boolean compareValues)
        Add a ConsentFlowDescriptor to the ProfileRequestContext.
        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()