Class IDAttributeTest

    • Constructor Detail

      • IDAttributeTest

        public IDAttributeTest()
        Constructor.
    • 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,
                                     UnmarshallingException
        Tests 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 error
        UnmarshallingException - when unmarshaller encounters an error
      • testAttributeMapOps

        public void testAttributeMapOps()
                                 throws XMLParserException,
                                        UnmarshallingException
        Tests 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 error
        UnmarshallingException - when unmarshaller encounters an error