svn commit r44326 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit r44326 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client

Evanthika Amarasiri
Author: evanthika
Date: Fri Aug 28 01:22:06 2009
New Revision: 44326
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44326

Log:
Common properties read fron framework.properties file

Modified:
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client/ESBRMClient.java

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client/ESBRMClient.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client/ESBRMClient.java?rev=44326&r1=44325&r2=44326&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client/ESBRMClient.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/client/ESBRMClient.java Fri Aug 28 01:22:06 2009
@@ -87,6 +87,12 @@
         return properties;
     }
 
+    public static Properties loadfameworkProperties() throws IOException {
+        Properties properties = new Properties();
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        return properties;
+    }
+
     public boolean RMRequestReplyAnonClient(String serviceName, String soapversion, String SoapAction, String NameSpace, String operation, String param1, String param2) throws Exception {
 
         int count = 0;
@@ -96,7 +102,7 @@
         //toDo - find a way to engage addressing without using configContext
         sc.engageModule("addressing");
         Options opts = new Options();
-        opts.setTo(new EndpointReference("http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + "/services/" + serviceName));
+        opts.setTo(new EndpointReference("http://" + loadfameworkProperties().getProperty("host.name") + ":" + loadProperties().getProperty("nio.http.port") + "/services/" + serviceName));
         opts.setAction(SoapAction);
         if (soapversion.equals("soap12")) {
             opts.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
@@ -120,7 +126,7 @@
         return output;
     }
 
-    public void RMOnewayAnonClient(String serviceName, String soapversion, String SoapAction, String NameSpace, String operation, String param) throws Exception {
+    public void RMOnewayAnonClient(String serviceName, String soapversion, String SoapAction, String NameSpace, String operation, String param1, String param2) throws Exception {
 
         int count = 0;
 
@@ -137,12 +143,12 @@
         }
         sc.setOptions(opts);
         for (int i = 0; i < 10; i++) {
-            sc.fireAndForget(CreateRequestReplyPayload(NameSpace, operation, param));
+            sc.fireAndForget(createPayLoad(NameSpace, operation, param1, param2));
         }
         Thread.sleep(1000);
         //Setting the last message
         sc.getOptions().setProperty(SandeshaClientConstants.LAST_MESSAGE, Constants.VALUE_TRUE);
-        sc.fireAndForget(CreateRequestReplyPayload(NameSpace, operation, param));
+        sc.fireAndForget(createPayLoad(NameSpace, operation, param1, param2));
 
     }
 

_______________________________________________
Commons-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/commons-dev
Loading...