Class EntitiesDescriptorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderBaseTestCase
-
- org.opensaml.saml.saml2.metadata.impl.EntitiesDescriptorTest
-
public class EntitiesDescriptorTest extends XMLObjectProviderBaseTestCase
Test case for creating, marshalling, and unmarshallingEntitiesDescriptorImpl.
-
-
Field Summary
Fields Modifier and Type Field Description protected DurationexpectedCacheDurationExpected cacheDuration value in milisecondsprotected intexpectedEntitiesDescriptorsCountExpected number of child EntitiesDescriptorsprotected intexpectedEntityDescriptorsCountExpected number of child EntityDescriptorsprotected StringexpectedIDExpected ID attribute valueprotected StringexpectedNameExpected Name attribute valueprotected InstantexpectedValidUntilExpected validUntil value-
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 EntitiesDescriptorTest()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SignaturebuildSignatureSkeleton()Build a Signature skeleton to use in marshalling unit tests.protected voidsetUp()voidtestAttributeIDnessMarshall()Test marshalling of attribute IDness.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
-
expectedName
protected String expectedName
Expected Name attribute value
-
expectedID
protected String expectedID
Expected ID attribute value
-
expectedCacheDuration
protected Duration expectedCacheDuration
Expected cacheDuration value in miliseconds
-
expectedValidUntil
protected Instant expectedValidUntil
Expected validUntil value
-
expectedEntitiesDescriptorsCount
protected int expectedEntitiesDescriptorsCount
Expected number of child EntitiesDescriptors
-
expectedEntityDescriptorsCount
protected int expectedEntityDescriptorsCount
Expected number of child EntityDescriptors
-
-
Method Detail
-
testSingleElementUnmarshall
public void testSingleElementUnmarshall()
- Specified by:
testSingleElementUnmarshallin classXMLObjectProviderBaseTestCase
-
testSingleElementOptionalAttributesUnmarshall
public void testSingleElementOptionalAttributesUnmarshall()
- Overrides:
testSingleElementOptionalAttributesUnmarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsUnmarshall
public void testChildElementsUnmarshall()
- Overrides:
testChildElementsUnmarshallin 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
-
testChildElementsMarshall
public void testChildElementsMarshall()
- Overrides:
testChildElementsMarshallin classXMLObjectProviderBaseTestCase
-
buildSignatureSkeleton
private Signature buildSignatureSkeleton()
Build a Signature skeleton to use in marshalling unit tests.- Returns:
- minimally populated Signature element
-
-