Class AuthnAuthorityDescriptorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderBaseTestCase
-
- org.opensaml.saml.saml2.metadata.impl.AuthnAuthorityDescriptorTest
-
public class AuthnAuthorityDescriptorTest extends XMLObjectProviderBaseTestCase
Test case for creating, marshalling, and unmarshallingAuthnAuthorityDescriptorImpl.
-
-
Field Summary
Fields Modifier and Type Field Description protected intexpectedAssertionIdRequestServicesExpected number ofAssertionIdRequestServicesub elementsprotected intexpectedAuthnQueryServicesExpected number ofAuthnQueryServicesub elementsprotected DurationexpectedCacheDurationExpected cacheDuration value in milisecondsprotected intexpectedContactPersonsExpected number ofContactPersonsub elementsprotected StringexpectedErrorURLExpected errorURL valueprotected intexpectedKeyDescriptorsExpected number ofKeyDescriptorsub elementsprotected intexpectedNameIdFormatsExpected number ofNameIdFormatsub elementsprotected List<String>expectedSupportedProtocolsExpected supported protocol enumerationprotected 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 AuthnAuthorityDescriptorTest()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()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
-
expectedSupportedProtocols
protected List<String> expectedSupportedProtocols
Expected supported protocol enumeration
-
expectedCacheDuration
protected Duration expectedCacheDuration
Expected cacheDuration value in miliseconds
-
expectedValidUntil
protected Instant expectedValidUntil
Expected validUntil value
-
expectedErrorURL
protected String expectedErrorURL
Expected errorURL value
-
expectedKeyDescriptors
protected int expectedKeyDescriptors
Expected number ofKeyDescriptorsub elements
-
expectedContactPersons
protected int expectedContactPersons
Expected number ofContactPersonsub elements
-
expectedAuthnQueryServices
protected int expectedAuthnQueryServices
Expected number ofAuthnQueryServicesub elements
-
expectedAssertionIdRequestServices
protected int expectedAssertionIdRequestServices
Expected number ofAssertionIdRequestServicesub elements
-
expectedNameIdFormats
protected int expectedNameIdFormats
Expected number ofNameIdFormatsub elements
-
-
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
-
testSingleElementOptionalAttributesMarshall
public void testSingleElementOptionalAttributesMarshall()
- Overrides:
testSingleElementOptionalAttributesMarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsMarshall
public void testChildElementsMarshall()
- Overrides:
testChildElementsMarshallin classXMLObjectProviderBaseTestCase
-
-