Class ResolverTestSupport
java.lang.Object
net.shibboleth.idp.attribute.resolver.testing.ResolverTestSupport
Support class for attribute resolvers testing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringeduPersonAfiliation.static final String[]Two affiliations.static final String[]Another two affiliations.static final String[]Three affiliations.static final StringeduPersonEntitlement.static final String[]Two entitlement URIs.static final String[]An entitlement URN.static final String[]A different entitlement URN. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IdPAttributebuildAttribute(String attributeId, String... values) Construct a testIdPAttributebuildAttributeDefinition(String attributeId, String... values) Construct a testAttributeDefinitionstatic MockStaticDataConnectorbuildDataConnector(String connectorId, IdPAttribute... attributes) Construct a testDataConnectorstatic AttributeResolutionContextbuildResolutionContext(ResolverPlugin<?>... plugins) work method to build aAttributeResolutionContext
-
Field Details
-
EPA_ATTRIB_ID
eduPersonAfiliation.- See Also:
-
EPA1_VALUES
Two affiliations. -
EPA2_VALUES
Another two affiliations. -
EPA3_VALUES
Three affiliations. -
EPE_ATTRIB_ID
eduPersonEntitlement.- See Also:
-
EPE1_VALUES
Two entitlement URIs. -
EPE2_VALUES
An entitlement URN. -
EPE3_VALUES
A different entitlement URN.
-
-
Constructor Details
-
ResolverTestSupport
public ResolverTestSupport()
-
-
Method Details
-
buildResolutionContext
@Nonnull public static AttributeResolutionContext buildResolutionContext(ResolverPlugin<?>... plugins) work method to build aAttributeResolutionContext- Parameters:
plugins- what to pupulate- Returns:
- the context
-
buildAttribute
@Nonnull public static IdPAttribute buildAttribute(@Nonnull @NotEmpty String attributeId, @Nonnull String... values) Construct a testIdPAttribute- Parameters:
attributeId- its namevalues- its values (as strings)- Returns:
- the Attribute
-
buildAttributeDefinition
@Nullable public static MockStaticAttributeDefinition buildAttributeDefinition(@Nonnull @NotEmpty String attributeId, @Nonnull String... values) Construct a testAttributeDefinition- Parameters:
attributeId- the namevalues- the values- Returns:
- the definition
-
buildDataConnector
@Nullable public static MockStaticDataConnector buildDataConnector(@Nonnull @NotEmpty String connectorId, @Nonnull IdPAttribute... attributes) Construct a testDataConnector- Parameters:
connectorId- the nameattributes- what to return- Returns:
- the definition
-