Package org.apache.axiom.ts.om.element

Class Summary
TestAddAttributeAlreadyOwnedByElement Test that calling OMElement.addAttribute(OMAttribute) with an attribute that is already owned by the element is a no-op.
TestAddAttributeAlreadyOwnedByOtherElement Test that calling OMElement.addAttribute(OMAttribute) with an attribute that is already owned by another element will clone the attribute.
TestAddAttributeFromOMAttributeMultiple Tests that when OMElement.addAttribute(org.apache.axiom.om.OMAttribute) is called multiple times for attributes with different namespaces, each call adds a corresponding namespace declaration.
TestAddAttributeFromOMAttributeWithExistingName  
TestAddAttributeReplace1 Test that OMElement.addAttribute(OMAttribute) behaves correctly when an attribute with the same name and namespace URI already exists.
TestAddAttributeReplace2 Test that OMElement.addAttribute(String, String, OMNamespace) behaves correctly when an attribute with the same name and namespace URI already exists.
TestAddAttributeWithExistingNamespaceDeclarationInScope Tests OMElement.addAttribute(OMAttribute) doesn't create an additional namespace declaration if a corresponding declaration is already in scope.
TestAddAttributeWithExistingNamespaceDeclarationOnSameElement Tests OMElement.addAttribute(OMAttribute) doesn't create an additional namespace declaration if a corresponding declaration already exists on the element.
TestAddAttributeWithMaskedNamespaceDeclaration Test checking that OMElement.addAttribute(OMAttribute) correctly generates a new namespace declaration if an equivalent namespace declaration exists but is masked.
TestAddAttributeWithoutExistingNamespaceDeclaration Tests that OMElement.addAttribute(OMAttribute) adds a namespace declaration if the attribute has a namespace and a corresponding namespace declaration doesn't exist yet.
TestAddChild  
TestAddChildWithParent Test that OMContainer.addChild(org.apache.axiom.om.OMNode) behaves correctly if the child to be added already has a parent.
TestDeclareNamespace1  
TestGetAllAttributes1 Test OMElement.getAllAttributes() on a programmatically created document.
TestGetAllAttributes2 Test OMElement.getAllAttributes() on a parsed document.
TestGetAllDeclaredNamespaces  
TestGetAttributeValueNonExisting Tests the behavior of OMElement.getAttributeValue(QName) if the element has no attribute with the given QName.
TestGetAttributeValueWithXmlPrefix1 Test that OMElement.getAttributeValue(QName) works properly for an attribute with the xml prefix, even if this prefix is not declared explicitly.
TestGetAttributeValueWithXmlPrefix2 Test that OMElement.getAttributeValue(QName) works properly for an attribute with the xml prefix, even if this prefix is not declared explicitly.
TestGetAttributeWithXmlPrefix1 Test that OMElement.getAttribute(QName) works properly for an attribute with the xml prefix, even if this prefix is not declared explicitly.
TestGetAttributeWithXmlPrefix2 Test that OMElement.getAttribute(QName) works properly for an attribute with the xml prefix, even if this prefix is not declared explicitly.
TestGetChildElements Test the element iterator
TestGetChildren Test the plain iterator which includes all the children (including the texts)
TestGetChildrenConcurrentModification Tests that the iterator returned by OMContainer.getChildren() throws a ConcurrentModificationException if the current node is removed using a method other than Iterator.remove().
TestGetChildrenRemove1 test the remove exception behavior
TestGetChildrenRemove2 test the remove exception behavior, consecutive remove calls
TestGetChildrenRemove3 Remove all!
TestGetChildrenRemove4 test whether the children count reduces.
TestGetChildrenWithLocalName  
TestGetChildrenWithName Test the element iterator
TestGetFirstChildWithName Tests the behavior of OMContainer.getFirstChildWithName(QName).
TestGetFirstChildWithNameOnIncompleteElement Tests the behavior of OMContainer.getFirstChildWithName(QName) on an incomplete element.
TestGetNamespaceURI  
TestGetNamespaceURIWithoutNamespace  
TestGetQNameWithoutNamespace  
TestGetXMLStreamReaderCDATAEventFromElement  
TestGetXMLStreamReaderCDATAEventFromParser  
TestGetXMLStreamReaderCommentEvent  
TestGetXMLStreamReaderGetElementText  
TestGetXMLStreamReaderGetNamespaceContext  
TestGetXMLStreamReaderNextTag  
TestGetXMLStreamReaderOnNonRootElement  
TestGetXMLStreamReaderWithOMSourcedElementDescendant  
TestIsCompleteAfterAddingIncompleteChild Tests that the completeness status (as returned by OMSerializable.isComplete()) is updated correctly after an incomplete child is added to a programmatically created element.
TestResolveQNameWithDefaultNamespace  
TestResolveQNameWithNonDefaultNamespace  
TestResolveQNameWithoutNamespace  
TestResolveQNameWithUnboundPrefix Tests the behavior of OMElement.resolveQName(String) if the prefix of the QName is not bound in the namespace context of the element.
TestSerialization Tests proper serialization for different combinations of namespaces on the element and its children.
TestSerializationWithTwoNonBuiltOMElements Regression test for AXIOM-65.
TestSerializeAndConsumeWithIncompleteDescendant Tests that OMElement.serializeAndConsume(java.io.Writer) consumes incomplete descendants, even if the element itself is complete (more precisely, created programmatically).
TestSetText  
TestSetTextQName Tests the behavior of OMElement.setText(QName), in particular that it adds a namespace declaration if necessary.
 



Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.