You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/01/03 17:03:21 UTC

svn commit: r1054671 - /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java

Author: veithen
Date: Mon Jan  3 16:03:21 2011
New Revision: 1054671

URL: http://svn.apache.org/viewvc?rev=1054671&view=rev
Log:
Fixed an incorrect test case: TestSerializationWithTwoNonBuiltOMElements is supposed to test the new OMXMLParserWrapper#getDocumentElement(boolean) method, the purpose of which is to make it unnecessary to use OMNodeEx#setParent(null).

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java?rev=1054671&r1=1054670&r2=1054671&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestSerializationWithTwoNonBuiltOMElements.java Mon Jan  3 16:03:21 2011
@@ -24,7 +24,6 @@ import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.om.OMXMLBuilderFactory;
-import org.apache.axiom.om.impl.OMNodeEx;
 import org.apache.axiom.ts.AxiomTestCase;
 
 /**
@@ -49,7 +48,6 @@ public class TestSerializationWithTwoNon
         rootElement.addChild(childOne);
         OMElement childTwo = OMXMLBuilderFactory.createOMBuilder(omFactory,
                 new StringReader(sampleXMLTwo)).getDocumentElement(true);
-        ((OMNodeEx) childTwo).setParent(null);
         rootElement.addChild(childTwo);
 
         assertTrue(expectedXML.equals(rootElement.toString()));