Author: keith
Date: Sun Apr 20 22:50:46 2008
New Revision: 15871

Log:

Adding client for children method


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

Modified: 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/E4XTest.java
==============================================================================
--- 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/E4XTest.java
 (original)
+++ 
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/E4XTest.java
 Sun Apr 20 22:50:46 2008
@@ -167,4 +167,19 @@
         // Test weather the index of the element was returned correctly
         TestCase.assertEquals("1", result.getFirstElement().getText());
     }
+
+    /**
+     * Tests the children() method of the E4X Impl
+     * @throws Exception - Thrown in case an exception occurs
+     */
+    public void testChildren() throws Exception {
+        Options options = new Options();
+        options.setTo(endpointReference);
+        options.setAction(
+                
"http://services.mashup.wso2.org/E4XTest/ServiceInterface/childrenRequest";);
+        sender.setOptions(options);
+        OMElement result = sender.sendReceive(null);
+        // Test weather the index of the element was returned correctly
+        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=\"xmlList\" 
xsi:type=\"xs:anyType\"><name>Jim</name><age>25</age></return>", 
result.getFirstElement().toString());
+    }
 }
\ No newline at end of file

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

Reply via email to