svn commit r43959 - trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas

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

svn commit r43959 - trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas

Charitha Kankanamge
Author: charitha
Date: Fri Aug 21 19:54:18 2009
New Revision: 43959
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=43959

Log:
Code formatting - JarServicesTest

Modified:
   trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/ManageJarServiceTest.java

Modified: trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/ManageJarServiceTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/ManageJarServiceTest.java?rev=43959&r1=43958&r2=43959&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/ManageJarServiceTest.java (original)
+++ trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/ManageJarServiceTest.java Fri Aug 21 19:54:18 2009
@@ -1,3 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
 package org.wso2.carbon.web.test.wsas;
 
 import junit.framework.TestCase;
@@ -13,13 +32,6 @@
 import org.wso2.carbon.web.test.common.KeyStoreManagement;
 
 
-/**
- * Created by IntelliJ IDEA.
- * User: jayani
- * Date: Aug 21, 2009
- * Time: 11:37:46 AM
- * To change this template use File | Settings | File Templates.
- */
 public class ManageJarServiceTest extends TestCase {
 
     Selenium browser;
@@ -58,7 +70,7 @@
         browser.type("serviceGroupName", ServiceName);
         InstSeleniumTestBase.SetFileBrowse("resourceFileName", artifactPath.getCanonicalPath());
         browser.click("upload");
- browser.waitForPageToLoad("30000");
+        browser.waitForPageToLoad("30000");
 
         assertTrue(browser.isTextPresent("Add Jar Service"));
         assertTrue(browser.isTextPresent("Step 2 of 3: Select Classes to Expose as Web Services"));
@@ -70,11 +82,11 @@
         assertTrue(browser.isElementPresent("//input[@value=' <Back ']"));
         assertTrue(browser.isElementPresent("//input[@value=' Cancel ']"));
 
- browser.click("org.wso2.carbon.jarservice.JarService2Chk");
- browser.click("org.wso2.carbon.service.JarService1Chk");
+        browser.click("org.wso2.carbon.jarservice.JarService2Chk");
+        browser.click("org.wso2.carbon.service.JarService1Chk");
 
- browser.click("//input[@value=' Next> ']");
- browser.waitForPageToLoad("30000");
+        browser.click("//input[@value=' Next> ']");
+        browser.waitForPageToLoad("30000");
 
         assertTrue(browser.isTextPresent("Add Jar Service"));
         assertTrue(browser.isTextPresent("Step 3 of 3: Select Methods to be Exposed as Web Service Operations"));
@@ -85,8 +97,8 @@
         assertTrue(browser.isElementPresent("//input[@value=' Cancel ']"));
 
 
- browser.click("//input[@value=' Finish ']");
- browser.waitForPageToLoad("30000");
+        browser.click("//input[@value=' Finish ']");
+        browser.waitForPageToLoad("30000");
         assertTrue(browser.isTextPresent("Service archive successfully created. Please refresh this page in a while to see the status of the created Axis2 services"));
         Thread.sleep(2000);
         browser.click("//button[@type='button']");
@@ -96,8 +108,7 @@
         browser.waitForPageToLoad("120000");
         assertTrue(browser.isTextPresent(ServiceName));
 
-    }
-
+   }
 
 
     public void testServiceGroupParameter() throws Exception {
@@ -108,17 +119,17 @@
     }
 
 
-   public void testAddServiceGroupModule() throws Exception {
+    public void testAddServiceGroupModule() throws Exception {
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
-        instServiceManagement.engageServiceGroupModule("JarService", "sandesha2-"+moduleVersion);
-        instServiceManagement.disengageServiceGroupModule("JarService", "sandesha2-"+moduleVersion);
+        instServiceManagement.engageServiceGroupModule("JarService", "sandesha2-" + moduleVersion);
+        instServiceManagement.disengageServiceGroupModule("JarService", "sandesha2-" + moduleVersion);
     }
 
     public void testCheckThrottling() throws Exception {
 
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
         instServiceManagement.openServiceDashboard("JarService1", "jarservice");
-        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root")+ "/services/" + "JarService1";
+        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root") + "/services/" + "JarService1";
         instServiceManagement.checkThrottling(serviceepr, "echoString", "urn:echoString", "http://service.carbon.wso2.org", "s");
 
 
@@ -129,7 +140,7 @@
 
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
         instServiceManagement.accessServiceDashboard("JarService1");
-        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") +  loadProperties().getProperty("context.root")+ "/services/" + "JarService1";
+        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root") + "/services/" + "JarService1";
         instServiceManagement.checkCaching(serviceepr, "getTime", "urn:getTime", "http://service.carbon.wso2.org");
 
     }
@@ -137,9 +148,9 @@
     public void testServiceModuleMgt() throws Exception {
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
         instServiceManagement.accessServiceDashboard("JarService1");
-        instServiceManagement.engageServiceModule("JarService1", "sandesha2-"+moduleVersion);
+        instServiceManagement.engageServiceModule("JarService1", "sandesha2-" + moduleVersion);
         instServiceManagement.accessServiceDashboard("JarService1");
-        instServiceManagement.disengageServiceModule("JarService1", "sandesha2-"+moduleVersion);
+        instServiceManagement.disengageServiceModule("JarService1", "sandesha2-" + moduleVersion);
     }
 
     public void testServiceActivation() throws Exception {
@@ -148,10 +159,10 @@
         instServiceManagement.serviceActivation("JarService1", "Activate");
     }
 
-//   public void testTransport() throws Exception {
-//      ServiceManagement instServiceManagement = new ServiceManagement(browser);
-//        instServiceManagement.checkTransport("JarService1");
-//    }
+   public void testTransport() throws Exception {
+      ServiceManagement instServiceManagement = new ServiceManagement(browser);
+        instServiceManagement.checkTransport("JarService1");
+    }
 
     public void testServiceParameter() throws Exception {
         SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(browser);
@@ -166,14 +177,13 @@
     public void testOperationalThrottling() throws Exception {
 
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
-        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") +  loadProperties().getProperty("context.root") + "/services/" + "JarService1";
+        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root") + "/services/" + "JarService1";
         instServiceManagement.accessServiceDashboard("JarService1");
         instServiceManagement.openOperationDashboard("JarService1", "echoString");
         instServiceManagement.checkThrottling(serviceepr, "echoString", "urn:echoString", "http://service.carbon.wso2.org", "s");
 
     }
 
-    //test passes but org.apache.axis2.AxisFault: Parser has already reached end of the document. No siblings found
     public void testOperationalCaching() throws Exception {
 
 
@@ -228,9 +238,9 @@
     public void testMTOM() throws Exception {
         ServiceManagement insServiceManagement = new ServiceManagement(browser);
 
-        insServiceManagement.changeOperationalMTOM("JarService1", "echoString","Optional" );
+        insServiceManagement.changeOperationalMTOM("JarService1", "echoString", "Optional");
         Thread.sleep(1000);
-        insServiceManagement.changeOperationalMTOM("JarService1", "echoString","True" );
+        insServiceManagement.changeOperationalMTOM("JarService1", "echoString", "True");
         Thread.sleep(1000);
         insServiceManagement.changeOperationalMTOM("JarService1", "echoString", "False");
         Thread.sleep(1000);
@@ -308,8 +318,7 @@
         instServiceManagement.assignSecConEncrOnlyAnonymousSecurityScenario(serviceName, nameSpace, soapAction, operation, "s");
     }
 
-    public void testCheckSecurityScenario6() throws Exception
-    {
+    public void testCheckSecurityScenario6() throws Exception {
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
         String serviceName = "JarService1";
         String nameSpace = "http://service.carbon.wso2.org";
@@ -400,11 +409,11 @@
     }
 
 
-
     public void testDeleteKeystore() throws Exception {
         KeyStoreManagement instKeyStoreManagement = new KeyStoreManagement(browser);
         instKeyStoreManagement.deleteKeyStore("qaserver.jks");
     }
+
     public void testRemoveServices() throws Exception {
         SeleniumTestBase instSeleniumTestBase = new SeleniumTestBase(browser);
         instSeleniumTestBase.deleteService("JarService");

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