Class AttributeResolutionSubjectLookupFunctionTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.logic.AttributeResolutionSubjectLookupFunctionTest
-
public class AttributeResolutionSubjectLookupFunctionTest extends org.opensaml.core.testing.OpenSAMLInitBaseTestCaseAttributeResolutionSubjectLookupFunctionunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.profile.logic.AttributeResolutionSubjectLookupFunctionlookupprotected ProfileRequestContextprcprivate net.shibboleth.idp.attribute.transcoding.impl.AttributeTranscoderRegistryImplregistry
-
Constructor Summary
Constructors Constructor Description AttributeResolutionSubjectLookupFunctionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidtearDown()voidtestFailNullStrategy()Test that lookup does not accept null strategy.voidtestNoAttributeCtx()Test that lookup copes with no attribute context.voidtestNoAttributes()Test that lookup copes with no attributes in attribute context.voidtestOnlyActive()Test that lookup is not picking subs with inactive or wrong type of encoders.voidtestSuccess()Test that lookup is able to locate sub claim.
-
-
-
Field Detail
-
registry
private net.shibboleth.idp.attribute.transcoding.impl.AttributeTranscoderRegistryImpl registry
-
lookup
private net.shibboleth.idp.plugin.oidc.op.profile.logic.AttributeResolutionSubjectLookupFunction lookup
-
prc
protected ProfileRequestContext prc
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
tearDown
@AfterMethod public void tearDown()
-
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.
-
-