axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r331967 - /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
Date Wed, 09 Nov 2005 07:04:05 GMT
Author: chinthaka
Date: Tue Nov  8 23:04:00 2005
New Revision: 331967

URL: http://svn.apache.org/viewcvs?rev=331967&view=rev
Log:
Making this a "Test" ;).

Modified:
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java?rev=331967&r1=331966&r2=331967&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
Tue Nov  8 23:04:00 2005
@@ -25,13 +25,14 @@
 public class DefaultNamespaceTest extends TestCase {
 
     public void testDefaultNamespace() {
+
+        String expectedXML = "<Foo xmlns=\"http://defaultNsUri.org\"><Bar xmlns=\"\"></Bar><Baz></Baz></Foo>";
+
         OMFactory factory = OMAbstractFactory.getOMFactory();
         OMElement foo = factory.createOMElement(new QName("http://defaultNsUri.org", "Foo"),
null);
         OMElement bar = factory.createOMElement("Bar", null, foo);
         OMElement baz = factory.createOMElement(new QName("http://defaultNsUri.org", "Baz"),
foo);
-
-
-        System.out.println("foo = " + foo);
+        assertEquals(expectedXML, foo.toString());
     }
 
 }



Mime
View raw message