Class ScopeUtilTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.profile.ScopeUtilTest
-
public class ScopeUtilTest extends Object
Unit tests forScopeUtil.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classScopeUtilTest.MockScriptedIdPAttribute
-
Constructor Summary
Constructors Constructor Description ScopeUtilTest()
-
Method Summary
-
-
-
Field Detail
-
id
final String id
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildAttribute_nullScopeReturnsEmptyValuesList
public void buildAttribute_nullScopeReturnsEmptyValuesList()
-
buildAttribute_emptyScopeReturnsEmptyValuesList
public void buildAttribute_emptyScopeReturnsEmptyValuesList()
-
buildAttribute_shouldParseScopeValues
public void buildAttribute_shouldParseScopeValues()
-
setAttributeValues_nullScopeLeavesInitialValues
public void setAttributeValues_nullScopeLeavesInitialValues()
-
setAttributeValues_emptyScopeLeavesInitialValues
public void setAttributeValues_emptyScopeLeavesInitialValues()
-
setAttributeValues_scopeValuesSetToAttribute
public void setAttributeValues_scopeValuesSetToAttribute()
-
populateScriptedAttribute_nullScopeLeavesInitialValues
public void populateScriptedAttribute_nullScopeLeavesInitialValues()
-
populateScriptedAttribute_emptyScopeLeavesInitialValues
public void populateScriptedAttribute_emptyScopeLeavesInitialValues()
-
populateScriptedAttribute_scopeValuesAddedToAttribute
public void populateScriptedAttribute_scopeValuesAddedToAttribute()
-
populateScriptedAttribute_nullSourceLeavesInitialValues
public void populateScriptedAttribute_nullSourceLeavesInitialValues() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
populateScriptedAttribute_emptySourceLeavesInitialValues
public void populateScriptedAttribute_emptySourceLeavesInitialValues() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
populateScriptedAttribute_sourceValuesAddedToAttribute
public void populateScriptedAttribute_sourceValuesAddedToAttribute() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildScope_nullAttributeBuildsEmptyScope
public void buildScope_nullAttributeBuildsEmptyScope()
-
buildScope_emptyAttributeBuildsEmptyScope
public void buildScope_emptyAttributeBuildsEmptyScope()
-
buildScope_attributeValuesAreCopiedToScope
public void buildScope_attributeValuesAreCopiedToScope()
-
buildScope_nullScriptedAttributeBuildsEmptyScope
public void buildScope_nullScriptedAttributeBuildsEmptyScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildScope_emptyScriptedAttributeBuildsEmptyScope
public void buildScope_emptyScriptedAttributeBuildsEmptyScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildScope_attributeScriptedValuesAreCopiedToScope
public void buildScope_attributeScriptedValuesAreCopiedToScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_IdPAttribute_nullAttributeReturnsEmptyScope
public void buildIntersectedScope_IdPAttribute_nullAttributeReturnsEmptyScope()
-
buildIntersectedScope_IdPAttribute_EmptyAttributeReturnsEmtpyScope
public void buildIntersectedScope_IdPAttribute_EmptyAttributeReturnsEmtpyScope()
-
buildIntersectedScope_IdPAttribute_sameAttributeValuesKeepScope
public void buildIntersectedScope_IdPAttribute_sameAttributeValuesKeepScope()
-
buildIntersectedScope_IdPAttribute_sameAttributeValuesKeptInScope
public void buildIntersectedScope_IdPAttribute_sameAttributeValuesKeptInScope()
-
buildIntersectedScope_IdPAttribute_sameScopeValuesKeptInScope
public void buildIntersectedScope_IdPAttribute_sameScopeValuesKeptInScope()
-
buildIntersectedScope_IdPAttribute_nullScopeKeepsAttributeValues
public void buildIntersectedScope_IdPAttribute_nullScopeKeepsAttributeValues()
-
buildIntersectedScope_IdPAttribute_EmptyScopeReturnsEmtpyScope
public void buildIntersectedScope_IdPAttribute_EmptyScopeReturnsEmtpyScope()
-
buildIntersectedScope_ScriptedIdPAttribute_nullAttributeReturnsEmptyScope
public void buildIntersectedScope_ScriptedIdPAttribute_nullAttributeReturnsEmptyScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_EmptyAttributeReturnsEmtpyScope
public void buildIntersectedScope_ScriptedIdPAttribute_EmptyAttributeReturnsEmtpyScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_sameAttributeValuesKeepScope
public void buildIntersectedScope_ScriptedIdPAttribute_sameAttributeValuesKeepScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_sameAttributeValuesKeptInScope
public void buildIntersectedScope_ScriptedIdPAttribute_sameAttributeValuesKeptInScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_sameScopeValuesKeptInScope
public void buildIntersectedScope_ScriptedIdPAttribute_sameScopeValuesKeptInScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_nullScopeKeepsAttributeValues
public void buildIntersectedScope_ScriptedIdPAttribute_nullScopeKeepsAttributeValues() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
buildIntersectedScope_ScriptedIdPAttribute_EmptyScopeReturnsEmtpyScope
public void buildIntersectedScope_ScriptedIdPAttribute_EmptyScopeReturnsEmtpyScope() throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
removeValue_existingValueRemoved
public void removeValue_existingValueRemoved()
-
removeValue_nonExistingValueKeepsOriginal
public void removeValue_nonExistingValueKeepsOriginal()
-
assertStringValues
protected void assertStringValues(List<net.shibboleth.idp.attribute.IdPAttributeValue> values, String... strings)
-
assertStringValues
protected void assertStringValues(net.shibboleth.idp.attribute.resolver.scripted.ScriptedIdPAttribute attribute, String... strings)
-
assertScopeValues
protected void assertScopeValues(com.nimbusds.oauth2.sdk.Scope scope, String... strings)
-
-