cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r463136 - in /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test: ./ soap/ xml/
Date Thu, 12 Oct 2006 05:54:19 GMT
Author: tli
Date: Wed Oct 11 22:54:16 2006
New Revision: 463136

URL: http://svn.apache.org/viewvc?view=rev&rev=463136
Log:
do performance tunning for type_test

Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient2.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient3.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient4.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient5.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPDocLitClientTypeTest.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPRpcLitClientTypeTest.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/xml/XMLClientTypeTest.java

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient.java
Wed Oct 11 22:54:16 2006
@@ -50,26 +50,24 @@
 
     protected boolean perfTestOnly;
 
-    private final QName serviceName;
-    private final QName portName;
-    private final String wsdlPath;
+//    private final QName serviceName;
+//    private final QName portName;
+//    private final String wsdlPath;
 
-    public AbstractTypeTestClient(String name, QName theServicename, QName thePort, String
theWsdlPath) {
+    public AbstractTypeTestClient(String name) {
         super(name); 
-        serviceName = theServicename;
-        portName = thePort;
-        wsdlPath = theWsdlPath;
+//        serviceName = theServicename;
+//        portName = thePort;
+//        wsdlPath = theWsdlPath;
     }
 
     public void setPerformanceTestOnly() {
         perfTestOnly = true;
     }
 
-    public void setUp() throws Exception {
-        super.setUp(); 
-
-       
-        URL wsdlLocation = getClass().getResource(wsdlPath);
+    public static void initClient(Class clz, QName serviceName, QName portName, String wsdlPath)

+        throws Exception {       
+        URL wsdlLocation = clz.getResource(wsdlPath);
         assertNotNull("Could not load wsdl " + wsdlPath, wsdlLocation);
         testDocLiteral = wsdlPath.contains("doclit");
         testXMLBinding = wsdlPath.contains("_xml");

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient2.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient2.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient2.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient2.java
Wed Oct 11 22:54:16 2006
@@ -24,7 +24,6 @@
 import java.util.List;
 
 import javax.xml.bind.JAXBElement;
-import javax.xml.namespace.QName;
 import javax.xml.ws.Holder;
 
 import org.apache.type_test.types1.AnonymousStruct;
@@ -82,9 +81,8 @@
 
 public abstract class AbstractTypeTestClient2 extends AbstractTypeTestClient {
 
-    public AbstractTypeTestClient2(String name, QName theServicename,
-            QName thePort, String theWsdlPath) {
-        super(name, theServicename, thePort, theWsdlPath);
+    public AbstractTypeTestClient2(String name) {
+        super(name);
     }
 
     protected <T> boolean equalsNilable(T x, T y) {

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient3.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient3.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient3.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient3.java
Wed Oct 11 22:54:16 2006
@@ -77,9 +77,8 @@
 
 public abstract class AbstractTypeTestClient3 extends AbstractTypeTestClient2 {
 
-    public AbstractTypeTestClient3(String name, QName theServicename,
-            QName thePort, String theWsdlPath) {
-        super(name, theServicename, thePort, theWsdlPath);
+    public AbstractTypeTestClient3(String name) {
+        super(name);
     }
  
     protected boolean equals(ChoiceOfChoice x, ChoiceOfChoice y) {

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient4.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient4.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient4.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient4.java
Wed Oct 11 22:54:16 2006
@@ -68,9 +68,8 @@
 
 public abstract class AbstractTypeTestClient4 extends AbstractTypeTestClient3 {
 
-    public AbstractTypeTestClient4(String name, QName theServicename,
-            QName thePort, String theWsdlPath) {
-        super(name, theServicename, thePort, theWsdlPath);
+    public AbstractTypeTestClient4(String name) {
+        super(name);
     }
 
     //org.apache.type_test.types2.SimpleContentExtWithAnyAttribute;

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient5.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient5.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient5.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/AbstractTypeTestClient5.java
Wed Oct 11 22:54:16 2006
@@ -18,7 +18,6 @@
  */
 package org.apache.cxf.systest.type_test;
 
-import javax.xml.namespace.QName;
 import javax.xml.ws.Holder;
 
 import org.apache.type_test.types1.ComplexRestriction;
@@ -29,9 +28,8 @@
 
 public abstract class AbstractTypeTestClient5 extends AbstractTypeTestClient4 {
 
-    public AbstractTypeTestClient5(String name, QName theServicename,
-            QName thePort, String theWsdlPath) {
-        super(name, theServicename, thePort, theWsdlPath);
+    public AbstractTypeTestClient5(String name) {
+        super(name);
     }
 
     //org.apache.type_test.types1.ComplexRestriction

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPDocLitClientTypeTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPDocLitClientTypeTest.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPDocLitClientTypeTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPDocLitClientTypeTest.java
Wed Oct 11 22:54:16 2006
@@ -39,7 +39,7 @@
     static final QName PORT_NAME = new QName("http://apache.org/type_test/doc", "SOAPPort");
 
     public SOAPDocLitClientTypeTest(String name) {
-        super(name, SERVICE_NAME, PORT_NAME, WSDL_PATH);
+        super(name);
     }
     
     public static Test suite() throws Exception {
@@ -57,6 +57,7 @@
                 // configFileName = url.toString();
                 configFileName = null;
                 super.setUp();
+                initClient(AbstractTypeTestClient5.class, SERVICE_NAME, PORT_NAME, WSDL_PATH);
             }
         };
     }  

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPRpcLitClientTypeTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPRpcLitClientTypeTest.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPRpcLitClientTypeTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/soap/SOAPRpcLitClientTypeTest.java
Wed Oct 11 22:54:16 2006
@@ -41,7 +41,7 @@
     static final QName PORT_NAME = new QName("http://apache.org/type_test/rpc", "SOAPPort");
 
     public SOAPRpcLitClientTypeTest(String name) {
-        super(name, SERVICE_NAME, PORT_NAME, WSDL_PATH);
+        super(name);
     }
 
     public static Test suite() throws Exception {
@@ -51,6 +51,10 @@
                 boolean ok = launchServer(SOAPRpcLitServerImpl.class);
                 assertTrue("failed to launch server", ok);
             }
+            public void setUp() throws Exception {
+                super.setUp();
+                initClient(AbstractTypeTestClient5.class, SERVICE_NAME, PORT_NAME, WSDL_PATH);
+            }                
         };
     }
     

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/xml/XMLClientTypeTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/xml/XMLClientTypeTest.java?view=diff&rev=463136&r1=463135&r2=463136
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/xml/XMLClientTypeTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/type_test/xml/XMLClientTypeTest.java
Wed Oct 11 22:54:16 2006
@@ -32,7 +32,7 @@
     static final QName PORT_NAME = new QName("http://apache.org/type_test/xml", "XMLPort");
 
     public XMLClientTypeTest(String name) {
-        super(name, SERVICE_NAME, PORT_NAME, WSDL_PATH);
+        super(name);
     }
     
     public static Test suite() throws Exception {
@@ -50,6 +50,11 @@
 //                configFileName = url.toString(); 
 //                super.setUp();
 //            }
+            public void setUp() throws Exception {
+                super.setUp();
+                initClient(AbstractTypeTestClient5.class, SERVICE_NAME, PORT_NAME, WSDL_PATH);
+            }
+
         };
     }  
 }



Mime
View raw message