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

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

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

Evanthika Amarasiri
Author: evanthika
Date: Wed Aug 26 23:01:48 2009
New Revision: 44248
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44248

Log:
Added new lines of code to invoke clients if esb is started with a context root

Modified:
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlAnonSeqProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlAnonSeqProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddRegistrySourceWsdlProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlAnonSeqProxyServiceTest.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlProxyServiceTest.java

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlAnonSeqProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlAnonSeqProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlAnonSeqProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlAnonSeqProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -98,10 +98,22 @@
     This method will invoke the client
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
-       ESBSampleClient sampleClient = new ESBSampleClient();
-       boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_inline_wsdl_anon_seq", null);
+        ESBSampleClient sampleClient = new ESBSampleClient();
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_inline_wsdl_anon_seq", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_inline_wsdl_anon_seq", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddInlineWsdlProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -137,10 +137,22 @@
     Method to invoke the client
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
         ESBSampleClient sampleClient = new ESBSampleClient();
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_inline_wsdl", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/services/proxy_inline_wsdl", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_inline_wsdl", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlAnonSeqProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlAnonSeqProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlAnonSeqProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlAnonSeqProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -84,10 +84,22 @@
     Method to invoke client
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
         ESBSampleClient sampleClient = new ESBSampleClient();
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_non_wsdl_anonSeq", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_non_wsdl_anonSeq", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_non_wsdl_anonSeq", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddNonWsdlProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -133,10 +133,22 @@
     Executing client for proxy_inline_wsdl_anon_seq Proxy Service
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
         ESBSampleClient sampleClient = new ESBSampleClient();
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_non_wsdl", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_non_wsdl", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_non_wsdl", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddRegistrySourceWsdlProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddRegistrySourceWsdlProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddRegistrySourceWsdlProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddRegistrySourceWsdlProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -144,10 +144,22 @@
     Executing client for proxy_inline_wsdl_anon_seq Proxy Service
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
         ESBSampleClient sampleClient = new ESBSampleClient();
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_registry_wsdl", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_registry_wsdl", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_registry_wsdl", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlAnonSeqProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlAnonSeqProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlAnonSeqProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlAnonSeqProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -87,10 +87,22 @@
     Executing client for proxy_inline_wsdl_anon_seq Proxy Service
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
         ESBSampleClient sampleClient = new ESBSampleClient();
         properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
         String http_port = properties.getProperty("http.port");
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_sourceurl_wsdl_anon_seq", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_sourceurl_wsdl_anon_seq", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_sourceurl_wsdl_anon_seq", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlProxyServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlProxyServiceTest.java?rev=44248&r1=44247&r2=44248&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlProxyServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBAddSourceUrlWsdlProxyServiceTest.java Wed Aug 26 23:01:48 2009
@@ -27,6 +27,7 @@
  */
 
 public class ESBAddSourceUrlWsdlProxyServiceTest extends CommonSetup {
+    Properties properties = new Properties();
 
     public ESBAddSourceUrlWsdlProxyServiceTest(String text) {
         super(text);
@@ -136,8 +137,22 @@
     Executing client for proxy_inline_wsdl_anon_seq Proxy Service
      */
     public void invokeClient() throws Exception{
+        boolean stockQuoteResponse = false;
+        properties.load(new FileInputStream(".."+ File.separator+"esb"+File.separator+"src"+File.separator+"test"+File.separator+"resources"+File.separator+"esb.properties"));
+        String http_port = properties.getProperty("http.port");
         ESBSampleClient sampleClient = new ESBSampleClient();
-        boolean stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:8280/services/proxy_source_url_wsdl", null);
+
+        properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));
+        String context_root =  properties.getProperty("context.root");
+        if (context_root.equals(null))
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/services/proxy_source_url_wsdl", null);
+        }
+        else
+        {
+            stockQuoteResponse = sampleClient.stockQuoteClient("http://localhost:"+http_port+"/"+context_root+"/services/proxy_source_url_wsdl", null);
+        }
+
         if (stockQuoteResponse){
             System.out.println("The response received!!!!");
         }else{

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