Author: keith
Date: Thu Apr 17 08:04:52 2008
New Revision: 15755

Log:

Adding some documentation



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:04:52 2008
@@ -21,21 +21,35 @@
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.ServiceClient;
 
+/**
+ * This test tests out the axiom E4X implementation. This test intends to 
cover all E4X operations
+ * that we permit in the mashup server
+ */
 public class E4XTest extends IntegrationTestSuite{
 
+    // The endpoint reference that the service is available at
     private EndpointReference endpointReference;
 
+    // The instance of service client that we use to invoke each operation
     private ServiceClient sender;
 
     public void setUp() throws java.lang.Exception {
         super.setUp();
+
+        // Instantiate serviceClient and the EndpointReference
         sender = new ServiceClient();
         endpointReference =
                 new EndpointReference(host + ":" + port + "/" + serviceRoot + 
"/system/E4XTest");
+
+        // Tests weather the server has started
         IntegrationTestSuite.testConnect(
                 new EndpointReference(host + ":" + port + "/" + serviceRoot + 
"/system/E4XTest"));
     }
 
+    /**
+     * Tests the addNamespace method of the E4X Impl
+     * @throws Exception - Thrown in case an exception occurs
+     */
     public void testAddNamespace() throws Exception {
         Options options = new Options();
         options.setTo(endpointReference);
@@ -43,6 +57,7 @@
                 
"http://services.mashup.wso2.org/E4XTest/ServiceInterface/addNamespaceRequest";);
         sender.setOptions(options);
         OMElement result = sender.sendReceive(null);
+        // Test weather the namespace is present
         TestCase.assertEquals(
                 "<employee xmlns:test=\"http://wso2.com\"; 
id=\"0\"><name>Jim</name><age>25</age></employee>",
                 
result.getFirstElement().getFirstElement().getFirstElement().toString());

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

Reply via email to