Class SAML2XMLObjectAttributeTranscoderTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
net.shibboleth.idp.saml.attribute.transcoding.impl.SAML2XMLObjectAttributeTranscoderTest
SAML2XMLObjectAttributeTranscoder unit test.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SAMLObjectBuilder<AttributeValue>private static final Stringprivate static final Stringprivate static final Stringprivate SAMLObjectBuilder<Attribute>private AttributeTranscoderRegistryImplprivate SAMLObjectBuilder<RequestedAttribute>private static final Stringprivate static final Stringprivate XMLObjectBuilder<XSString> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckValues(XMLObject input, String... possibles) Check that the input XML object is what was expected.voidvoidvoidvoidvoidmulti()voidprivate static XMLObjectAttributeValueCreate an XML object from a string which we can test against later.voidsetUp()voidsingle()voidvoidvoidvoidtearDown()Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
registry
-
anyBuilder
-
stringBuilder
-
attributeBuilder
-
reqAttributeBuilder
-
ATTR_NAME
- See Also:
-
ATTR_NAMEFORMAT
- See Also:
-
ATTR_FRIENDLYNAME
- See Also:
-
STRING_1
- See Also:
-
STRING_2
- See Also:
-
-
Constructor Details
-
SAML2XMLObjectAttributeTranscoderTest
public SAML2XMLObjectAttributeTranscoderTest()
-
-
Method Details
-
setUp
- Throws:
ComponentInitializationException
-
tearDown
@AfterClass public void tearDown() -
emptyEncode
- Throws:
Exception
-
emptyDecode
- Throws:
Exception
-
emptyRequestedDecode
- Throws:
Exception
-
inappropriate
- Throws:
Exception
-
single
- Throws:
Exception
-
singleRequested
- Throws:
Exception
-
singleDecode
- Throws:
Exception
-
singleRequestedDecode
- Throws:
Exception
-
multi
- Throws:
Exception
-
multiDecode
- Throws:
Exception
-
objectFor
Create an XML object from a string which we can test against later.- Parameters:
value- that we encode- Returns:
- an XML object
-
checkValues
Check that the input XML object is what was expected.- Parameters:
input- the objects in question.possibles- the strings that they might be encoding.
-