Author: keith
Date: Sun Apr 20 22:02:20 2008
New Revision: 15867

Log:

Adding client for childIndex


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:02:20 2008
@@ -152,4 +152,19 @@
                         "<employee 
id=\"1\"><name>Joe</name><age>20</age></employee></return>",
                 result.getFirstElement().getFirstElement().toString());
     }
+
+    /**
+     * Tests the childIndex() method of the E4X Impl
+     * @throws Exception - Thrown in case an exception occurs
+     */
+    public void testChildIndex() throws Exception {
+        Options options = new Options();
+        options.setTo(endpointReference);
+        options.setAction(
+                
"http://services.mashup.wso2.org/E4XTest/ServiceInterface/childIndexRequest";);
+        sender.setOptions(options);
+        OMElement result = sender.sendReceive(null);
+        // Test weather the index of the element was returned correctly
+        TestCase.assertEquals("1", result.getFirstElement().getText());
+    }
 }
\ 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