assertEquals("Text value mismatch", tempText, textNode.getText());
}
public void testAppendText() {
OMDOMFactory factory = new OMDOMFactory();
String localName = "TestLocalName";
String namespace = "http://ws.apache.org/axis2/ns";
String prefix = "axis2";
String tempText = "The quick brown fox jumps over the lazy dog";
String textToAppend = " followed by another fox";
OMElement elem = factory.createOMElement(localName, namespace, prefix);
OMText textNode = factory.createText(elem, tempText);
((Text) textNode).appendData(textToAppend);
assertEquals("Text value mismatch", tempText + textToAppend, textNode
.getText());