axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r332035 - /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
Date Wed, 09 Nov 2005 13:43:28 GMT
Author: dims
Date: Wed Nov  9 05:43:24 2005
New Revision: 332035

URL: http://svn.apache.org/viewcvs?rev=332035&view=rev
Log:
serialization is different on my box (switching to XMLUnit)


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=332035&r1=332034&r2=332035&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
Wed Nov  9 05:43:24 2005
@@ -4,6 +4,8 @@
 
 import javax.xml.namespace.QName;
 
+import org.custommonkey.xmlunit.XMLTestCase;
+
 /*
  * Copyright 2001-2004 The Apache Software Foundation.
  *
@@ -22,9 +24,9 @@
  * @author : Eran Chinthaka (chinthaka@apache.org)
  */
 
-public class DefaultNamespaceTest extends TestCase {
+public class DefaultNamespaceTest extends XMLTestCase {
 
-    public void testDefaultNamespace() {
+    public void testDefaultNamespace() throws Exception {
 
         String expectedXML = "<Foo xmlns=\"http://defaultNsUri.org\"><Bar xmlns=\"\"></Bar><Baz></Baz></Foo>";
 
@@ -32,7 +34,7 @@
         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);
-        assertEquals(expectedXML, foo.toString());
+        assertXMLEqual(expectedXML, foo.toString());
     }
 
     public void test() {



Mime
View raw message