Class AssertionTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderBaseTestCase
-
- org.opensaml.saml.saml2.core.impl.AssertionTest
-
public class AssertionTest extends XMLObjectProviderBaseTestCase
Test case for creating, marshalling, and unmarshallingAssertionImpl.
-
-
Field Summary
Fields Modifier and Type Field Description private intattributeStatementCountCount of AttributeStatement subelementsprivate intauthnStatementCountCount of AuthnStatement subelementsprivate intauthzDecisionStatementCountCount of AuthzDecisionStatement submelementsprivate StringexpectedIDExpected ID valueprivate InstantexpectedIssueInstantExpected IssueInstant valueprivate SAMLVersionexpectedVersionExpected Version valueprivate intstatementCountCount of Statement subelements-
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 AssertionTest()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestAttributeIDnessMarshall()Test marshalling of attribute IDness.voidtestBadSAMLVersion()voidtestChildElementsMarshall()voidtestChildElementsUnmarshall()voidtestSingleElementMarshall()voidtestSingleElementOptionalAttributesMarshall()voidtestSingleElementOptionalAttributesUnmarshall()voidtestSingleElementUnmarshall()-
Methods inherited from class org.opensaml.core.testing.XMLObjectProviderBaseTestCase
initXMLObjectProviderTestingSupprt, testAttributeIDnessMarshall, 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
-
expectedVersion
private SAMLVersion expectedVersion
Expected Version value
-
expectedIssueInstant
private Instant expectedIssueInstant
Expected IssueInstant value
-
expectedID
private String expectedID
Expected ID value
-
statementCount
private int statementCount
Count of Statement subelements
-
authnStatementCount
private int authnStatementCount
Count of AuthnStatement subelements
-
authzDecisionStatementCount
private int authzDecisionStatementCount
Count of AuthzDecisionStatement submelements
-
attributeStatementCount
private int attributeStatementCount
Count of AttributeStatement subelements
-
-
Method Detail
-
testSingleElementUnmarshall
public void testSingleElementUnmarshall()
- Specified by:
testSingleElementUnmarshallin classXMLObjectProviderBaseTestCase
-
testSingleElementOptionalAttributesUnmarshall
public void testSingleElementOptionalAttributesUnmarshall()
- Overrides:
testSingleElementOptionalAttributesUnmarshallin classXMLObjectProviderBaseTestCase
-
testSingleElementMarshall
public void testSingleElementMarshall()
- Specified by:
testSingleElementMarshallin classXMLObjectProviderBaseTestCase
-
testAttributeIDnessMarshall
public void testAttributeIDnessMarshall() throws MarshallingException, XMLParserExceptionTest marshalling of attribute IDness.
-
testSingleElementOptionalAttributesMarshall
public void testSingleElementOptionalAttributesMarshall()
- Overrides:
testSingleElementOptionalAttributesMarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsUnmarshall
public void testChildElementsUnmarshall()
- Overrides:
testChildElementsUnmarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsMarshall
public void testChildElementsMarshall()
- Overrides:
testChildElementsMarshallin classXMLObjectProviderBaseTestCase
-
testBadSAMLVersion
public void testBadSAMLVersion() throws XMLParserException, UnmarshallingException
-
-