Class AttributeResolutionSubjectLookupFunctionTest


  • public class AttributeResolutionSubjectLookupFunctionTest
    extends org.opensaml.core.testing.OpenSAMLInitBaseTestCase
    AttributeResolutionSubjectLookupFunction unit test.
    • Field Detail

      • registry

        private net.shibboleth.idp.attribute.transcoding.impl.AttributeTranscoderRegistryImpl registry
      • lookup

        private net.shibboleth.idp.plugin.oidc.op.profile.logic.AttributeResolutionSubjectLookupFunction lookup
    • Constructor Detail

      • AttributeResolutionSubjectLookupFunctionTest

        public AttributeResolutionSubjectLookupFunctionTest()
    • Method Detail

      • testSuccess

        public void testSuccess()
        Test that lookup is able to locate sub claim.
      • testNoAttributeCtx

        public void testNoAttributeCtx()
        Test that lookup copes with no attribute context.
      • testNoAttributes

        public void testNoAttributes()
        Test that lookup copes with no attributes in attribute context.
      • testFailNullStrategy

        public void testFailNullStrategy()
        Test that lookup does not accept null strategy.
      • testOnlyActive

        public void testOnlyActive()
        Test that lookup is not picking subs with inactive or wrong type of encoders.