xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r161204 - xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java
Date Wed, 13 Apr 2005 20:05:36 GMT
Author: cezar
Date: Wed Apr 13 13:05:35 2005
New Revision: 161204

URL: http://svn.apache.org/viewcvs?view=rev&rev=161204
Log:
Yana Kadiyska. Fixing faulty test

Modified:
    xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java

Modified: xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java?view=diff&r1=161203&r2=161204
==============================================================================
--- xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java (original)
+++ xmlbeans/trunk/test/src/dom/detailed/MoveImportNodeTest.java Wed Apr 13 13:05:35 2005
@@ -48,32 +48,7 @@
 	super(name);
     }
 
-    //insert a node from a ns into a non-ns
-    public void testMoveNodeNStoNoNS(){
-	Node toMove=m_docNS.getFirstChild().getFirstChild().getFirstChild(); //bar
-        assertEquals("myns:bar",toMove.getNodeName());
-	Element newParent=(Element)m_docNS.getFirstChild();
-        assertEquals("foo",newParent.getNodeName());
-	newParent.insertBefore(toMove,newParent.getFirstChild());
-
-	assertEquals(2,newParent.getChildNodes().getLength());
-	assertEquals(null,newParent.getElementsByTagNameNS("http://foo.org","bar"));
-	assertEquals(newParent.getElementsByTagName("bar"),newParent.getElementsByTagNameNS(null,"bar"));
-
-    }
-
-    //move node to a different namespace
-    public void testMoveDiffNS(){
-	Node toMove=m_docNS.getFirstChild().getFirstChild().getFirstChild(); //bar
-	Element newParent=(Element)m_docNS.getFirstChild();
-	newParent.insertBefore(toMove,newParent.getFirstChild());
-	newParent.getFirstChild().setPrefix("other");
-	assertEquals(2,newParent.getChildNodes().getLength());
-	assertEquals(null,(newParent).getElementsByTagNameNS(null,"bar"));
-	assertEquals(true,(toMove==newParent.getElementsByTagNameNS("other.org","bar")));
-    }
-
-
+  
     //import to a doc where the given ns DNE
     public void testMoveDiffDoc(){
 	Node toMove=m_docNS.getFirstChild().getFirstChild().getFirstChild(); //bar



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message