You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ve...@apache.org on 2005/06/01 08:05:14 UTC
cvs commit: ws-axis/java/test/RPCDispatch TestSerializedRPC.java
venkat 2005/05/31 23:05:14
Modified: java/test/RPCDispatch TestSerializedRPC.java
Log:
Replacing the plain string comparison with xmlunit assertions. This is towards fixing all-tests failures when NodeImpl�s mutator methods are added with a call to setDirty(true). Will check in NodeImpl.java after fixing a few more test cases where string operations are used. All tests in this file are still green after this change.
Revision Changes Path
1.45 +5 -2 ws-axis/java/test/RPCDispatch/TestSerializedRPC.java
Index: TestSerializedRPC.java
===================================================================
RCS file: /home/cvs/ws-axis/java/test/RPCDispatch/TestSerializedRPC.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- TestSerializedRPC.java 26 Feb 2005 21:37:33 -0000 1.44
+++ TestSerializedRPC.java 1 Jun 2005 06:05:14 -0000 1.45
@@ -22,13 +22,15 @@
import javax.xml.namespace.QName;
import java.util.Vector;
+import org.custommonkey.xmlunit.XMLTestCase;
+import org.apache.axis.AxisEngine;
/**
* Test org.apache.axis.handlers.RPCDispatcher
*
* @author Sam Ruby <ru...@us.ibm.com>
*/
-public class TestSerializedRPC extends TestCase {
+public class TestSerializedRPC extends XMLTestCase {
private final String header =
"<?xml version=\"1.0\"?>\n" +
@@ -205,7 +207,8 @@
arg += "</arg0>";
// invoke the service and verify the result
- assertEquals("Did not echo arg correctly.", arg, rpc("argAsDOM", arg, true));
+ engine.setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
+ assertXMLEqual("Did not echo arg correctly.", arg, rpc("argAsDOM", arg, true).toString());
}
public void testWrappedTypes() throws Exception