You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/07/26 16:06:36 UTC

svn commit: r425738 - in /webservices/axis2/trunk/java/modules/saaj: project.xml test/org/apache/axis2/saaj/MessageFactoryTest.java

Author: dims
Date: Wed Jul 26 07:06:36 2006
New Revision: 425738

URL: http://svn.apache.org/viewvc?rev=425738&view=rev
Log:
fix one test and open jira for another test failure (AXIS2-933)

Modified:
    webservices/axis2/trunk/java/modules/saaj/project.xml
    webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/MessageFactoryTest.java

Modified: webservices/axis2/trunk/java/modules/saaj/project.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/project.xml?rev=425738&r1=425737&r2=425738&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/project.xml (original)
+++ webservices/axis2/trunk/java/modules/saaj/project.xml Wed Jul 26 07:06:36 2006
@@ -249,6 +249,14 @@
                 <module>true</module>
             </properties>
         </dependency>
+        <dependency>
+            <groupId>xmlunit</groupId>
+            <artifactId>xmlunit</artifactId>
+            <version>${xmlunit.version}</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
     </dependencies>
 
     <reports/>

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/MessageFactoryTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/MessageFactoryTest.java?rev=425738&r1=425737&r2=425738&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/MessageFactoryTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/MessageFactoryTest.java Wed Jul 26 07:06:36 2006
@@ -27,10 +27,12 @@
 import java.io.File;
 import java.io.IOException;
 
+import org.custommonkey.xmlunit.XMLTestCase;
+
 /**
  * 
  */
-public class MessageFactoryTest extends TestCase {
+public class MessageFactoryTest extends XMLTestCase {
     private MessageFactory mf = null;
 
     protected void setUp() throws Exception {
@@ -101,9 +103,7 @@
             }
             msg2.writeTo(baos2);
 
-            if (!(baos1.toString().equals(baos2.toString()))) {
-                fail();
-            }
+            this.assertXMLEqual(baos1.toString(), baos2.toString());
         } catch (Exception e) {
             e.printStackTrace();
             fail();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org