Author: keith
Date: Mon Mar 31 04:59:47 2008
New Revision: 15400

Log:

More fixex to test cases to cope with xsi:type change



Modified:
   
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/SchemaIntegrationTest.java

Modified: 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/SchemaIntegrationTest.java
==============================================================================
--- 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/SchemaIntegrationTest.java
   (original)
+++ 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/SchemaIntegrationTest.java
   Mon Mar 31 04:59:47 2008
@@ -128,9 +128,9 @@
         OMElement element = result.getFirstElement();
         TestCase.assertEquals(
                 "<return  xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"; 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; 
xmlns:js=\"http://www.wso2.org/ns/jstype\"; js:type=\"array\">" +
-                        "<item js:type=\"string\">value1</item>" +
-                        "<item js:type=\"number\">2.27</item>" +
-                        "<item js:type=\"xml\"><value>2</value></item>" +
+                        "<item js:type=\"string\" 
xsi:type=\"xs:string\">value1</item>" +
+                        "<item js:type=\"number\" 
xsi:type=\"xs:double\">2.27</item>" +
+                        "<item js:type=\"xml\" 
xsi:type=\"xs:anyType\"><value>2</value></item>" +
                         "</return>",
                 element.toString());
     }
@@ -388,7 +388,7 @@
         options.setTimeOutInMilliSeconds(10000);
         sender.setOptions(options);
         OMElement result = sender.sendReceive(payload);
-        TestCase.assertEquals("<return>" + xmlParam + "</return>",
+        TestCase.assertEquals("<return 
xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"; 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; 
xsi:type=\"xs:anyType\">" + xmlParam + "</return>",
                               result.getFirstElement().toString());
     }
 
@@ -404,7 +404,7 @@
         sender.setOptions(options);
         OMElement result = sender.sendReceive(payload);
         TestCase.assertEquals(
-                "<return xmlns:js=\"http://www.wso2.org/ns/jstype\"; 
js:type=\"string\">" +
+                "<return xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"; 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; 
xmlns:js=\"http://www.wso2.org/ns/jstype\"; js:type=\"string\" 
xsi:type=\"xs:string\">" +
                         "testParam</return>",
                 result.getFirstElement().toString());
     }
@@ -595,7 +595,7 @@
                         "<nested1>10.0</nested1>" +
                         
"</ws:echoComplexCompositionsResponseTypecomplex1Type>" +
                         "<ws:echoComplexCompositionsResponseTypecomplex2Type>" 
+
-                        "<anotherNested 
xmlns:js=\"http://www.wso2.org/ns/jstype\"; js:type=\"array\">" +
+                        "<anotherNested 
xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"; 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; 
xmlns:js=\"http://www.wso2.org/ns/jstype\"; js:type=\"array\">" +
                         "<item js:type=\"xml\" 
xsi:type=\"xs:anyType\"><test>just some text</test></item>" +
                         "</anotherNested>" +
                         
"</ws:echoComplexCompositionsResponseTypecomplex2Type>" +

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to