Author: keith
Date: Thu Apr 17 08:22:20 2008
New Revision: 15758
Log:
Adding client for testing attribute() 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
Thu Apr 17 08:22:20 2008
@@ -96,4 +96,19 @@
"<employee
id=\"0\"><hobby>snorkeling</hobby><name>Jim</name><age>25</age></employee>",
result.getFirstElement().getFirstElement().getFirstElement().toString());
}
+
+ /**
+ * Tests the attribute method of the E4X Impl
+ * @throws Exception - Thrown in case an exception occurs
+ */
+ public void testAttribute() throws Exception {
+ Options options = new Options();
+ options.setTo(endpointReference);
+ options.setAction(
+
"http://services.mashup.wso2.org/E4XTest/ServiceInterface/attributeRequest");
+ sender.setOptions(options);
+ OMElement result = sender.sendReceive(null);
+ // Test weather the value of the attribute was returned correctly
+ TestCase.assertEquals("0", 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