Class RequestTestBase
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderBaseTestCase
-
- org.opensaml.saml.saml2.core.impl.RequestTestBase
-
- Direct Known Subclasses:
ArtifactResolveTest,AssertionIDRequestTest,AuthnRequestTest,LogoutRequestTest,ManageNameIDRequestTest,NameIDMappingRequestTest,SubjectQueryTestBase
public abstract class RequestTestBase extends XMLObjectProviderBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexpectedConsentExpected Consent attributeprotected StringexpectedDestinationExpected Destination attributeprotected StringexpectedIDExpected ID valueprotected InstantexpectedIssueInstantExpected IssueInstant attributeprotected IssuerexpectedIssuerExpected Issuer child elementprotected SAMLVersionexpectedSAMLVersionExpected SAML version-
Fields inherited from class org.opensaml.core.testing.XMLObjectProviderBaseTestCase
childElementsFile, expectedChildElementsDOM, expectedDOM, expectedOptionalAttributesDOM, expectedUnknownAttributesDOM, invalidDOM, invalidFile, singleElementFile, singleElementOptionalAttributesFile, singleElementUnknownAttributesFile
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description RequestTestBase()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidhelperTestChildElementsUnmarshall(SAMLObject samlObject)protected voidhelperTestSingleElementOptionalAttributesUnmarshall(SAMLObject samlObject)protected voidhelperTestSingleElementUnmarshall(SAMLObject samlObject)protected voidpopulateChildElements(SAMLObject samlObject)Used by subclasses to populate the child elements that this test expects.protected voidpopulateOptionalAttributes(SAMLObject samlObject)Used by subclasses to populate the optional attribute values that this test expects.protected voidpopulateRequiredAttributes(SAMLObject samlObject)Used by subclasses to populate the required attribute values that this test expects.protected voidsetUp()abstract voidtestSingleElementMarshall()abstract voidtestSingleElementUnmarshall()-
Methods inherited from class org.opensaml.core.testing.XMLObjectProviderBaseTestCase
initXMLObjectProviderTestingSupprt, testAttributeIDnessMarshall, testChildElementsMarshall, testChildElementsUnmarshall, testSingleElementOptionalAttributesMarshall, testSingleElementOptionalAttributesUnmarshall, testSingleElementUnknownAttributesMarshall, testSingleElementUnknownAttributesUnmarshall
-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
expectedID
protected String expectedID
Expected ID value
-
expectedSAMLVersion
protected SAMLVersion expectedSAMLVersion
Expected SAML version
-
expectedIssueInstant
protected Instant expectedIssueInstant
Expected IssueInstant attribute
-
expectedDestination
protected String expectedDestination
Expected Destination attribute
-
expectedConsent
protected String expectedConsent
Expected Consent attribute
-
expectedIssuer
protected Issuer expectedIssuer
Expected Issuer child element
-
-
Method Detail
-
testSingleElementUnmarshall
public abstract void testSingleElementUnmarshall()
- Specified by:
testSingleElementUnmarshallin classXMLObjectProviderBaseTestCase
-
testSingleElementMarshall
public abstract void testSingleElementMarshall()
- Specified by:
testSingleElementMarshallin classXMLObjectProviderBaseTestCase
-
populateRequiredAttributes
protected void populateRequiredAttributes(SAMLObject samlObject)
Used by subclasses to populate the required attribute values that this test expects.- Parameters:
samlObject- ...
-
populateOptionalAttributes
protected void populateOptionalAttributes(SAMLObject samlObject)
Used by subclasses to populate the optional attribute values that this test expects.- Parameters:
samlObject- ...
-
populateChildElements
protected void populateChildElements(SAMLObject samlObject)
Used by subclasses to populate the child elements that this test expects.- Parameters:
samlObject- ...
-
helperTestSingleElementUnmarshall
protected void helperTestSingleElementUnmarshall(SAMLObject samlObject)
-
helperTestSingleElementOptionalAttributesUnmarshall
protected void helperTestSingleElementOptionalAttributesUnmarshall(SAMLObject samlObject)
-
helperTestChildElementsUnmarshall
protected void helperTestChildElementsUnmarshall(SAMLObject samlObject)
-
-