Package org.opensaml.core.xml
Class IDAttributeTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.xml.IDAttributeTest
-
public class IDAttributeTest extends XMLObjectBaseTestCase
Unit test for unmarshalling functions.
-
-
Field Summary
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description IDAttributeTest()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAttributeMap()Tests registering ID-to-XMLObject mapping when unmarshalling unknown content, using the AttributeMap supplied by way of the AttributeExtensibleXMLObject interface.voidtestAttributeMapOps()Tests registering ID-to-XMLObject mapping when unmarshalling unknown content, using the AttributeMap supplied by way of the AttributeExtensibleXMLObject interface.voidtestChangePropagationInList()Test propagation of various changes to ID attribute mappings due to attribute value changes where children are stored in an XMLObjectChildren list.voidtestComplexUnmarshallInList()Test of ID attributes on complex nested unmarshalled elements where children are stored in an XMLObjectChildren list.voidtestGlobalIDRegistration()Tests that attributes registered globally onXMLObjectProviderRegistrySupportare being handled properly in the AttributeMap.voidtestListOpChangePropagation()Test propagation of various changes to ID attribute mappings due to list operations where children are stored in an XMLObjectChildren list.voidtestSimpleUnmarshall()Simple test of ID attribute on a single object.-
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
-
-
-
-
Method Detail
-
testSimpleUnmarshall
public void testSimpleUnmarshall()
Simple test of ID attribute on a single object.
-
testComplexUnmarshallInList
public void testComplexUnmarshallInList()
Test of ID attributes on complex nested unmarshalled elements where children are stored in an XMLObjectChildren list.
-
testChangePropagationInList
public void testChangePropagationInList()
Test propagation of various changes to ID attribute mappings due to attribute value changes where children are stored in an XMLObjectChildren list.
-
testListOpChangePropagation
public void testListOpChangePropagation()
Test propagation of various changes to ID attribute mappings due to list operations where children are stored in an XMLObjectChildren list.
-
testAttributeMap
public void testAttributeMap() throws XMLParserException, UnmarshallingExceptionTests registering ID-to-XMLObject mapping when unmarshalling unknown content, using the AttributeMap supplied by way of the AttributeExtensibleXMLObject interface. This tests general AttributeMap functionality on unmarshalling. For purposes of this test, the attribute in the control XML file with local name "id" on element "product" will be treated as an ID type.- Throws:
XMLParserException- when parser encounters an errorUnmarshallingException- when unmarshaller encounters an error
-
testAttributeMapOps
public void testAttributeMapOps() throws XMLParserException, UnmarshallingExceptionTests registering ID-to-XMLObject mapping when unmarshalling unknown content, using the AttributeMap supplied by way of the AttributeExtensibleXMLObject interface. This test tests propagation of changes on the various AttributeMap operations. For purposes of this test, the attribute in the control XML file with local name "id" on element "product" will be treated as an ID type.- Throws:
XMLParserException- when parser encounters an errorUnmarshallingException- when unmarshaller encounters an error
-
testGlobalIDRegistration
public void testGlobalIDRegistration() throws XMLParserException, UnmarshallingExceptionTests that attributes registered globally onXMLObjectProviderRegistrySupportare being handled properly in the AttributeMap.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
-