You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/03/05 04:52:01 UTC
svn commit: r633761 [3/4] - in
/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache:
axis2/jaxws/anytype/ axis2/jaxws/anytype/sei/ axis2/jaxws/anytype/tests/
axis2/jaxws/catalog/ axis2/jaxws/client/ axis2/jaxws/client/dispatch/
axis2...
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/sei/RPCLitStringArrayService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/sei/RPCLitStringArrayService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/sei/RPCLitStringArrayService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/sei/RPCLitStringArrayService.java Tue Mar 4 19:51:32 2008
@@ -19,13 +19,13 @@
*/
package org.apache.axis2.jaxws.rpclit.stringarray.sei;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/tests/RPCLitStringArrayTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/tests/RPCLitStringArrayTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/tests/RPCLitStringArrayTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/tests/RPCLitStringArrayTests.java Tue Mar 4 19:51:32 2008
@@ -18,15 +18,13 @@
*/
package org.apache.axis2.jaxws.rpclit.stringarray.tests;
-import java.util.Arrays;
-
-import javax.xml.ws.BindingProvider;
-
import junit.framework.TestCase;
-
import org.apache.axis2.jaxws.rpclit.stringarray.sei.Echo;
import org.apache.axis2.jaxws.rpclit.stringarray.sei.RPCLitStringArrayService;
import org.test.rpclit.stringarray.StringArray;
+
+import javax.xml.ws.BindingProvider;
+import java.util.Arrays;
public class RPCLitStringArrayTests extends TestCase {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java Tue Mar 4 19:51:32 2008
@@ -18,10 +18,18 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.Future;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler2;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler3;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler4;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientProtocolHandler;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersHandlerPortType;
+import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersHandlerService;
+import org.test.addnumbershandler.AddNumbersHandlerResponse;
import javax.xml.namespace.QName;
import javax.xml.transform.Result;
@@ -40,60 +48,32 @@
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.handler.PortInfo;
import javax.xml.ws.soap.SOAPFaultException;
-
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import java.io.StringReader;
import java.io.StringWriter;
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler2;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler3;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientLogicalHandler4;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersClientProtocolHandler;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersHandlerPortType;
-import org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersHandlerService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-import org.test.addnumbershandler.AddNumbersHandlerResponse;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.Future;
/**
* @author rott
*
*/
-public class AddNumbersHandlerTests extends TestCase {
+public class AddNumbersHandlerTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/AddNumbersHandlerService.AddNumbersHandlerPortTypeImplPort";
- File requestFile = null;
-
- public AddNumbersHandlerTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
- }
-
- public void setUp() throws Exception {
+ static File requestFile = null;
+ static {
String resourceDir = System.getProperty("basedir",".")+
File.separator+"test-resources"+File.separator+"xml";
requestFile = new File(resourceDir+File.separator+"addnumberstest.xml");
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
-
}
+
+ public static Test suite() {
+ return getTestSetup(new TestSuite(AddNumbersHandlerTests.class));
+ }
+
/**
* Client app sends 10, 10 as params to sum. No client-side handlers are configured
* for this scenario. The server-side AddNumbersLogicalHandler is instantiated with a
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddNumbersTests.java Tue Mar 4 19:51:32 2008
@@ -18,43 +18,23 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.util.Map;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.sample.addnumbers.AddNumbersPortType;
+import org.apache.axis2.jaxws.sample.addnumbers.AddNumbersService;
import javax.xml.ws.BindingProvider;
import javax.xml.ws.handler.MessageContext;
+import java.util.Map;
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.sample.addnumbers.AddNumbersPortType;
-import org.apache.axis2.jaxws.sample.addnumbers.AddNumbersService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-
-public class AddNumbersTests extends TestCase {
+public class AddNumbersTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/AddNumbersService.AddNumbersPortTypeImplPort";
- public AddNumbersTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(AddressBookTests.class));
}
public void testAddNumbers() throws Exception {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddressBookTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddressBookTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddressBookTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AddressBookTests.java Tue Mar 4 19:51:32 2008
@@ -18,6 +18,16 @@
*/
package org.apache.axis2.jaxws.sample;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.sample.addressbook.AddEntry;
+import org.apache.axis2.jaxws.sample.addressbook.AddEntryResponse;
+import org.apache.axis2.jaxws.sample.addressbook.AddressBook;
+import org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry;
+import org.apache.axis2.jaxws.sample.addressbook.ObjectFactory;
+
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
@@ -26,23 +36,11 @@
import javax.xml.ws.Service.Mode;
import javax.xml.ws.soap.SOAPBinding;
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.sample.addressbook.AddEntry;
-import org.apache.axis2.jaxws.sample.addressbook.AddEntryResponse;
-import org.apache.axis2.jaxws.sample.addressbook.AddressBook;
-import org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry;
-import org.apache.axis2.jaxws.sample.addressbook.ObjectFactory;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-
/**
* This tests the AddressBook same service that exists under
* org.apache.axis2.jaxws.sample.addressbook.*
*/
-public class AddressBookTests extends TestCase {
+public class AddressBookTests extends AbstractTestCase {
private static final String NAMESPACE = "http://org/apache/axis2/jaxws/sample/addressbook";
private static final QName QNAME_SERVICE = new QName(
@@ -51,24 +49,8 @@
NAMESPACE, "AddressBook");
private static final String URL_ENDPOINT = "http://localhost:6060/axis2/services/AddressBookService.AddressBookImplPort";
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
- }
-
- public AddressBookTests(String name) {
- super(name);
+ public static Test suite() {
+ return getTestSetup(new TestSuite(AddressBookTests.class));
}
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AsyncCallback.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AsyncCallback.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AsyncCallback.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/AsyncCallback.java Tue Mar 4 19:51:32 2008
@@ -22,14 +22,13 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.util.concurrent.ExecutionException;
+import org.apache.axis2.jaxws.TestLogger;
+import org.test.sample.nonwrap.ReturnType;
+import org.test.sample.nonwrap.TwoWayHolder;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
-
-import org.test.sample.nonwrap.ReturnType;
-import org.test.sample.nonwrap.TwoWayHolder;
-import org.apache.axis2.jaxws.TestLogger;
+import java.util.concurrent.ExecutionException;
public class AsyncCallback implements AsyncHandler {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/BareTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/BareTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/BareTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/BareTests.java Tue Mar 4 19:51:32 2008
@@ -22,40 +22,21 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.ws.BindingProvider;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.doclitbare.sei.BareDocLitService;
import org.apache.axis2.jaxws.sample.doclitbare.sei.DocLitBarePortType;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-public class BareTests extends TestCase {
+import javax.xml.ws.BindingProvider;
+
+public class BareTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/BareDocLitService.DocLitBarePortTypeImplPort";
- public BareTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(BareTests.class));
}
public void testTwoWaySync(){
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DLWMinTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DLWMinTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DLWMinTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DLWMinTests.java Tue Mar 4 19:51:32 2008
@@ -18,26 +18,23 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebServiceException;
-
-import org.apache.axis2.jaxws.dispatch.DispatchTestConstants;
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.dlwmin.sei.Greeter;
import org.apache.axis2.jaxws.sample.dlwmin.sei.TestException;
import org.apache.axis2.jaxws.sample.dlwmin.sei.TestException2;
import org.apache.axis2.jaxws.sample.dlwmin.sei.TestException3;
import org.apache.axis2.jaxws.sample.dlwmin.types.TestBean;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-import junit.framework.TestCase;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
-public class DLWMinTests extends TestCase {
+public class DLWMinTests extends AbstractTestCase {
private static final String NAMESPACE = "http://apache.org/axis2/jaxws/sample/dlwmin";
private static final QName QNAME_SERVICE = new QName(
@@ -46,28 +43,10 @@
NAMESPACE, "GreeterPort");
private static final String URL_ENDPOINT = "http://localhost:6060/axis2/services/GreeterService.GreeterImplPort";
- public DLWMinTests() {
- super();
- // TODO Auto-generated constructor stub
+ public static Test suite() {
+ return getTestSetup(new TestSuite(DLWMinTests.class));
}
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
- }
-
-
private Greeter getProxy(String action) {
Service service = Service.create(QNAME_SERVICE);
Greeter proxy = service.getPort(QNAME_PORT, Greeter.class);
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DocLitBareMinTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DocLitBareMinTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DocLitBareMinTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/DocLitBareMinTests.java Tue Mar 4 19:51:32 2008
@@ -22,40 +22,20 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Holder;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.doclitbaremin.sei.BareDocLitMinService;
import org.apache.axis2.jaxws.sample.doclitbaremin.sei.DocLitBareMinPortType;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-import junit.framework.TestCase;
-
-
-public class DocLitBareMinTests extends TestCase {
+import javax.xml.ws.BindingProvider;
- public DocLitBareMinTests() {
- super();
- // TODO Auto-generated constructor stub
- }
- static {
- BasicConfigurator.configure();
- }
+public class DocLitBareMinTests extends AbstractTestCase {
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(DocLitBareMinTests.class));
}
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultsServiceTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultsServiceTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultsServiceTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultsServiceTests.java Tue Mar 4 19:51:32 2008
@@ -22,16 +22,10 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.namespace.QName;
-import javax.xml.soap.DetailEntry;
-import javax.xml.soap.SOAPFault;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.soap.SOAPFaultException;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.faultsservice.BaseFault_Exception;
import org.apache.axis2.jaxws.sample.faultsservice.ComplexFault_Exception;
import org.apache.axis2.jaxws.sample.faultsservice.DerivedFault1_Exception;
@@ -40,36 +34,22 @@
import org.apache.axis2.jaxws.sample.faultsservice.FaultsServicePortType;
import org.apache.axis2.jaxws.sample.faultsservice.InvalidTickerFault_Exception;
import org.apache.axis2.jaxws.sample.faultsservice.SimpleFault;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
import org.test.polymorphicfaults.BaseFault;
import org.test.polymorphicfaults.ComplexFault;
import org.test.polymorphicfaults.DerivedFault1;
import org.test.polymorphicfaults.DerivedFault2;
-public class FaultsServiceTests extends TestCase {
+import javax.xml.soap.DetailEntry;
+import javax.xml.soap.SOAPFault;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.SOAPFaultException;
+
+public class FaultsServiceTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/FaultsService.FaultsPort";
- public FaultsServiceTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(FaultsServiceTests.class));
}
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java Tue Mar 4 19:51:32 2008
@@ -22,57 +22,31 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.net.UnknownHostException;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-
-import javax.xml.ws.AsyncHandler;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Response;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.soap.SOAPFaultException;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.faults.FaultyWebServiceFault_Exception;
import org.apache.axis2.jaxws.sample.faults.FaultyWebServicePortType;
import org.apache.axis2.jaxws.sample.faults.FaultyWebServiceService;
import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap;
import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrapService;
-import org.apache.axis2.jaxws.util.Constants;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.axis2.util.MessageContextBuilder;
-import org.apache.axis2.util.ThreadContextMigrator;
-import org.apache.axis2.util.ThreadContextMigratorUtil;
-import org.apache.log4j.BasicConfigurator;
import org.test.faults.FaultyWebServiceResponse;
-public class FaultyWebServiceTests extends TestCase {
- String axisEndpoint = "http://localhost:6060/axis2/services/FaultyWebServiceService.FaultyWebServicePortTypeImplPort";
-
- public FaultyWebServiceTests() {
- super();
- // TODO Auto-generated constructor stub
- }
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.soap.SOAPFaultException;
+import java.net.UnknownHostException;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
- static {
- BasicConfigurator.configure();
- }
+public class FaultyWebServiceTests extends AbstractTestCase {
+ String axisEndpoint = "http://localhost:6060/axis2/services/FaultyWebServiceService.FaultyWebServicePortTypeImplPort";
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(FaultyWebServiceTests.class));
}
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleByteArrayTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleByteArrayTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleByteArrayTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleByteArrayTests.java Tue Mar 4 19:51:32 2008
@@ -18,8 +18,15 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.awt.Image;
-import java.io.File;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.sample.mtom1.ImageDepot;
+import org.apache.axis2.jaxws.sample.mtom1.Invoke;
+import org.apache.axis2.jaxws.sample.mtom1.ObjectFactory;
+import org.apache.axis2.jaxws.sample.mtom1.SendImageResponse;
+import org.w3._2005._05.xmlmime.Base64Binary;
import javax.imageio.ImageIO;
import javax.xml.bind.JAXBContext;
@@ -27,49 +34,19 @@
import javax.xml.ws.Dispatch;
import javax.xml.ws.Service;
import javax.xml.ws.soap.SOAPBinding;
+import java.awt.*;
+import java.io.File;
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.sample.mtom1.ImageDepot;
-import org.apache.axis2.jaxws.sample.mtom1.ObjectFactory;
-import org.apache.axis2.jaxws.sample.mtom1.Invoke;
-import org.apache.axis2.jaxws.sample.mtom1.SendImageResponse;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-import org.w3._2005._05.xmlmime.Base64Binary;
-
-import com.sun.xml.bind.v2.runtime.unmarshaller.Base64Data;
-
-public class MtomSampleByteArrayTests extends TestCase {
+public class MtomSampleByteArrayTests extends AbstractTestCase {
private static final QName QNAME_SERVICE = new QName("urn://mtom1.sample.jaxws.axis2.apache.org", "SendImageService");
private static final QName QNAME_PORT = new QName("urn://mtom1.sample.jaxws.axis2.apache.org", "sendImageSoap");
private static final String URL_ENDPOINT = "http://localhost:6060/axis2/services/SendImageService";
private static final String IMAGE_DIR = System.getProperty("basedir",".")+File.separator+"test-resources"+File.separator+"image";
- public MtomSampleByteArrayTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(MtomSampleByteArrayTests.class));
}
-
/*
* Enable attachment Optimization through the SOAPBinding method
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java Tue Mar 4 19:51:32 2008
@@ -19,8 +19,15 @@
package org.apache.axis2.jaxws.sample;
-import java.awt.Image;
-import java.io.File;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.provider.DataSourceImpl;
+import org.test.mtom.ImageDepot;
+import org.test.mtom.ObjectFactory;
+import org.test.mtom.SendImage;
+import org.test.mtom.SendImageResponse;
import javax.activation.DataHandler;
import javax.activation.DataSource;
@@ -33,44 +40,18 @@
import javax.xml.ws.Service;
import javax.xml.ws.Service.Mode;
import javax.xml.ws.soap.SOAPBinding;
+import java.awt.*;
+import java.io.File;
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.provider.DataSourceImpl;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-import org.test.mtom.ImageDepot;
-import org.test.mtom.ObjectFactory;
-import org.test.mtom.SendImage;
-import org.test.mtom.SendImageResponse;
-
-public class MtomSampleTests extends TestCase {
+public class MtomSampleTests extends AbstractTestCase {
private static final QName QNAME_SERVICE = new QName("urn://mtom.test.org", "MtomSampleService");
private static final QName QNAME_PORT = new QName("urn://mtom.test.org", "MtomSample");
private static final String URL_ENDPOINT = "http://localhost:6060/axis2/services/MtomSampleService.MtomSampleServicePort";
private static final String IMAGE_DIR = System.getProperty("basedir",".")+"/"+"test-resources"+File.separator+"image";
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
- }
-
- public MtomSampleTests(String name) {
- super(name);
+ public static Test suite() {
+ return getTestSetup(new TestSuite(MtomSampleTests.class));
}
/*
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/NonWrapTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/NonWrapTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/NonWrapTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/NonWrapTests.java Tue Mar 4 19:51:32 2008
@@ -22,56 +22,26 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.util.concurrent.Future;
-
-import javax.xml.ws.Holder;
-import javax.xml.ws.WebServiceException;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapPortType;
import org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
import org.test.sample.nonwrap.ObjectFactory;
import org.test.sample.nonwrap.ReturnType;
import org.test.sample.nonwrap.TwoWay;
import org.test.sample.nonwrap.TwoWayHolder;
-public class NonWrapTests extends TestCase {
-
-
- public NonWrapTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @param arg0
- */
- public NonWrapTests(String arg0) {
- super(arg0);
- // TODO Auto-generated constructor stub
- }
+import javax.xml.ws.Holder;
+import javax.xml.ws.WebServiceException;
+import java.util.concurrent.Future;
- static {
- BasicConfigurator.configure();
- }
+public class NonWrapTests extends AbstractTestCase {
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(NonWrapTests.class));
}
-
public void testTwoWaySync(){
TestLogger.logger.debug("------------------------------");
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/ParallelAsyncTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/ParallelAsyncTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/ParallelAsyncTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/ParallelAsyncTests.java Tue Mar 4 19:51:32 2008
@@ -18,39 +18,32 @@
*/
package org.apache.axis2.jaxws.sample;
-import java.util.Map;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Executor;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import java.util.concurrent.RejectedExecutionException;
-
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Response;
-
import junit.framework.Test;
-import junit.framework.TestCase;
import junit.framework.TestSuite;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.parallelasync.common.CallbackHandler;
import org.apache.axis2.jaxws.sample.parallelasync.server.AsyncPort;
import org.apache.axis2.jaxws.sample.parallelasync.server.AsyncService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
import org.test.parallelasync.CustomAsyncResponse;
import org.test.parallelasync.SleepResponse;
import org.test.parallelasync.WakeUpResponse;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+import java.util.Map;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+
/**
* Tests for Asynchrony in JAX-WS. Most of the simple invokeAsync/async
* exceptions have been covered under jaxws.dispatch and jaxws.proxy test suites
*
* ExecutionException tests are covered in jaxws.dispatch and jaxws.proxy
*/
-public class ParallelAsyncTests extends TestCase {
+public class ParallelAsyncTests extends AbstractTestCase {
private static final String DOCLITWR_ASYNC_ENDPOINT =
"http://localhost:6060/axis2/services/AsyncService.DocLitWrappedPortImplPort";
@@ -58,25 +51,8 @@
// used for logging
private String myClassName = "ParallelAsyncTests";
- public ParallelAsyncTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(ParallelAsyncTests.class));
}
public void testNOOP () {}
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java Tue Mar 4 19:51:32 2008
@@ -18,37 +18,18 @@
*/
package org.apache.axis2.jaxws.sample;
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.stringlist.sei.StringListPortType;
import org.apache.axis2.jaxws.stringlist.sei.StringListService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
-
-import junit.framework.TestCase;
-
-
-public class StringListTests extends TestCase{
-
- public StringListTests() {
- super();
- // TODO Auto-generated constructor stub
- }
- static {
- BasicConfigurator.configure();
- }
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
+public class StringListTests extends AbstractTestCase {
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(StringListTests.class));
}
public void testStringListScenario() throws Exception {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WSGenTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WSGenTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WSGenTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WSGenTests.java Tue Mar 4 19:51:32 2008
@@ -18,40 +18,21 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.ws.BindingProvider;
-
-import junit.framework.TestCase;
-
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
-import org.apache.axis2.jaxws.sample.wsgen.client.WSGenService;
-import org.apache.axis2.jaxws.sample.wsgen.client.WSGenInterface;
+import junit.framework.Test;
+import junit.framework.TestSuite;
import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
+import org.apache.axis2.jaxws.sample.wsgen.client.WSGenInterface;
+import org.apache.axis2.jaxws.sample.wsgen.client.WSGenService;
+
+import javax.xml.ws.BindingProvider;
-public class WSGenTests extends TestCase {
+public class WSGenTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/WSGenService.WSGenPort";
- public WSGenTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(WrapTests.class));
}
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WrapTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WrapTests.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WrapTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WrapTests.java Tue Mar 4 19:51:32 2008
@@ -22,55 +22,28 @@
*/
package org.apache.axis2.jaxws.sample;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Holder;
-import javax.xml.ws.WebServiceException;
-
-import junit.framework.TestCase;
-
+import junit.framework.Test;
+import junit.framework.TestSuite;
import org.apache.axis2.datasource.jaxb.JAXBCustomBuilderMonitor;
-import org.apache.axis2.jaxws.framework.StartServer;
-import org.apache.axis2.jaxws.framework.StopServer;
+import org.apache.axis2.jaxws.TestLogger;
+import org.apache.axis2.jaxws.framework.AbstractTestCase;
import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap;
import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrapService;
-import org.apache.axis2.jaxws.TestLogger;
-import org.apache.log4j.BasicConfigurator;
import org.test.sample.wrap.Header;
import org.test.sample.wrap.HeaderPart0;
import org.test.sample.wrap.HeaderPart1;
import org.test.sample.wrap.HeaderResponse;
-public class WrapTests extends TestCase {
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Holder;
+import javax.xml.ws.WebServiceException;
+
+public class WrapTests extends AbstractTestCase {
String axisEndpoint = "http://localhost:6060/axis2/services/DocLitWrapService.DocLitWrapImplPort";
- public WrapTests() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @param arg0
- */
- public WrapTests(String arg0) {
- super(arg0);
- // TODO Auto-generated constructor stub
- }
-
- static {
- BasicConfigurator.configure();
- }
-
- public void setUp() {
- TestLogger.logger.debug("Starting the server for: " +this.getClass().getName());
- StartServer startServer = new StartServer("server1");
- startServer.testStartServer();
- }
-
- public void tearDown() {
- TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName());
- StopServer stopServer = new StopServer("server1");
- stopServer.testStopServer();
+ public static Test suite() {
+ return getTestSetup(new TestSuite(WrapTests.class));
}
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersFault_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersFault_Exception.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersFault_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersFault_Exception.java Tue Mar 4 19:51:32 2008
@@ -18,9 +18,9 @@
*/
package org.apache.axis2.jaxws.sample.addnumbers;
-import javax.xml.ws.WebFault;
-
import org.test.addnumbers.AddNumbersFault;
+
+import javax.xml.ws.WebFault;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java Tue Mar 4 19:51:32 2008
@@ -18,14 +18,13 @@
*/
package org.apache.axis2.jaxws.sample.addnumbers;
-import java.util.Map;
-
import org.apache.axis2.jaxws.TestLogger;
import javax.annotation.Resource;
import javax.jws.WebService;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.handler.MessageContext;
+import java.util.Map;
@WebService(serviceName="AddNumbersService",endpointInterface="org.apache.axis2.jaxws.sample.addnumbers.AddNumbersPortType")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersService.java Tue Mar 4 19:51:32 2008
@@ -19,14 +19,13 @@
*/
package org.apache.axis2.jaxws.sample.addnumbers;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler.java Tue Mar 4 19:51:32 2008
@@ -18,10 +18,12 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.io.ByteArrayOutputStream;
-import java.io.StringBufferInputStream;
-import java.util.Map;
-import java.util.StringTokenizer;
+import org.apache.axis2.jaxws.handler.AttachmentsAdapter;
+import org.apache.axis2.jaxws.handler.LogicalMessageContext;
+import org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils;
+import org.apache.axis2.jaxws.message.XMLFault;
+import org.apache.axis2.jaxws.message.util.XMLFaultUtils;
+import org.apache.axis2.jaxws.utility.SAAJFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPConstants;
@@ -38,13 +40,10 @@
import javax.xml.ws.ProtocolException;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.soap.SOAPFaultException;
-
-import org.apache.axis2.jaxws.handler.AttachmentsAdapter;
-import org.apache.axis2.jaxws.handler.LogicalMessageContext;
-import org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils;
-import org.apache.axis2.jaxws.message.XMLFault;
-import org.apache.axis2.jaxws.message.util.XMLFaultUtils;
-import org.apache.axis2.jaxws.utility.SAAJFactory;
+import java.io.ByteArrayOutputStream;
+import java.io.StringBufferInputStream;
+import java.util.Map;
+import java.util.StringTokenizer;
/*
* You can't actually specify whether a handler is for client or server,
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler2.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler2.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler2.java Tue Mar 4 19:51:32 2008
@@ -18,9 +18,7 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.io.ByteArrayOutputStream;
-import java.io.StringBufferInputStream;
-import java.util.StringTokenizer;
+import org.apache.axis2.jaxws.handler.LogicalMessageContext;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Source;
@@ -30,8 +28,9 @@
import javax.xml.transform.stream.StreamSource;
import javax.xml.ws.LogicalMessage;
import javax.xml.ws.handler.MessageContext;
-
-import org.apache.axis2.jaxws.handler.LogicalMessageContext;
+import java.io.ByteArrayOutputStream;
+import java.io.StringBufferInputStream;
+import java.util.StringTokenizer;
/*
* You can't actually specify whether a handler is for client or server,
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler3.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler3.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler3.java Tue Mar 4 19:51:32 2008
@@ -27,7 +27,6 @@
import javax.xml.transform.stream.StreamResult;
import javax.xml.ws.LogicalMessage;
import javax.xml.ws.handler.MessageContext;
-
import java.io.ByteArrayOutputStream;
/*
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler4.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler4.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler4.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientLogicalHandler4.java Tue Mar 4 19:51:32 2008
@@ -18,9 +18,9 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import javax.xml.ws.handler.MessageContext;
-
import org.apache.axis2.jaxws.handler.LogicalMessageContext;
+
+import javax.xml.ws.handler.MessageContext;
/*
* You can't actually specify whether a handler is for client or server,
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientProtocolHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientProtocolHandler.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientProtocolHandler.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersClientProtocolHandler.java Tue Mar 4 19:51:32 2008
@@ -18,11 +18,10 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.util.Set;
-
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.MessageContext.Scope;
import javax.xml.ws.handler.soap.SOAPMessageContext;
+import java.util.Set;
/*
* You can't actually specify whether a handler is for client or server,
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerFault_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerFault_Exception.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerFault_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerFault_Exception.java Tue Mar 4 19:51:32 2008
@@ -19,9 +19,9 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import javax.xml.ws.WebFault;
-
import org.test.addnumbershandler.AddNumbersHandlerFault;
+
+import javax.xml.ws.WebFault;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortType.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortType.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortType.java Tue Mar 4 19:51:32 2008
@@ -19,8 +19,8 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.util.concurrent.Future;
-import javax.jws.HandlerChain;
+import org.test.addnumbershandler.AddNumbersHandlerResponse;
+
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
@@ -29,8 +29,7 @@
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
-
-import org.test.addnumbershandler.AddNumbersHandlerResponse;
+import java.util.concurrent.Future;
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortTypeImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerPortTypeImpl.java Tue Mar 4 19:51:32 2008
@@ -18,15 +18,16 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.util.concurrent.Future;
-import javax.jws.WebService;
+import org.apache.axis2.jaxws.TestLogger;
+import org.test.addnumbershandler.AddNumbersHandlerResponse;
+
import javax.annotation.Resource;
import javax.jws.HandlerChain;
+import javax.jws.WebService;
import javax.xml.ws.AsyncHandler;
-import org.test.addnumbershandler.AddNumbersHandlerResponse;
-import org.apache.axis2.jaxws.TestLogger;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.handler.MessageContext;
+import java.util.concurrent.Future;
@WebService(serviceName="AddNumbersHandlerService",endpointInterface="org.apache.axis2.jaxws.sample.addnumbershandler.AddNumbersHandlerPortType")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerService.java Tue Mar 4 19:51:32 2008
@@ -19,14 +19,13 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler.java Tue Mar 4 19:51:32 2008
@@ -18,10 +18,8 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.io.ByteArrayOutputStream;
-import java.io.StringBufferInputStream;
-import java.util.Map;
-import java.util.StringTokenizer;
+import org.apache.axis2.jaxws.handler.AttachmentsAdapter;
+import org.apache.axis2.jaxws.handler.LogicalMessageContext;
import javax.annotation.PostConstruct;
import javax.xml.transform.OutputKeys;
@@ -34,9 +32,10 @@
import javax.xml.ws.ProtocolException;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.MessageContext.Scope;
-
-import org.apache.axis2.jaxws.handler.AttachmentsAdapter;
-import org.apache.axis2.jaxws.handler.LogicalMessageContext;
+import java.io.ByteArrayOutputStream;
+import java.io.StringBufferInputStream;
+import java.util.Map;
+import java.util.StringTokenizer;
public class AddNumbersLogicalHandler
implements javax.xml.ws.handler.LogicalHandler<LogicalMessageContext> {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler2.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler2.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersLogicalHandler2.java Tue Mar 4 19:51:32 2008
@@ -18,8 +18,7 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
+import org.apache.axis2.jaxws.handler.LogicalMessageContext;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Source;
@@ -29,8 +28,8 @@
import javax.xml.transform.stream.StreamSource;
import javax.xml.ws.LogicalMessage;
import javax.xml.ws.handler.MessageContext;
-
-import org.apache.axis2.jaxws.handler.LogicalMessageContext;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
public class AddNumbersLogicalHandler2 implements javax.xml.ws.handler.LogicalHandler<LogicalMessageContext> {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler.java Tue Mar 4 19:51:32 2008
@@ -18,14 +18,13 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.util.Set;
-
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPMessageContext;
+import java.util.Set;
public class AddNumbersProtocolHandler implements javax.xml.ws.handler.soap.SOAPHandler<SOAPMessageContext> {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler2.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler2.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersProtocolHandler2.java Tue Mar 4 19:51:32 2008
@@ -18,11 +18,10 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
-import java.util.Set;
-
import javax.xml.namespace.QName;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPMessageContext;
+import java.util.Set;
public class AddNumbersProtocolHandler2 implements javax.xml.ws.handler.soap.SOAPHandler<SOAPMessageContext> {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/HandlerTracker.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/HandlerTracker.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/HandlerTracker.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/HandlerTracker.java Tue Mar 4 19:51:32 2008
@@ -18,12 +18,11 @@
*/
package org.apache.axis2.jaxws.sample.addnumbershandler;
+import javax.xml.ws.handler.MessageContext;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
-import javax.xml.ws.handler.MessageContext;
public class HandlerTracker {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addressbook/AddressBookImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addressbook/AddressBookImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addressbook/AddressBookImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addressbook/AddressBookImpl.java Tue Mar 4 19:51:32 2008
@@ -20,10 +20,9 @@
import org.apache.axis2.jaxws.TestLogger;
+import javax.jws.WebService;
import java.util.ArrayList;
import java.util.Iterator;
-
-import javax.jws.WebService;
@WebService(serviceName="AddressBookService",
endpointInterface="org.apache.axis2.jaxws.sample.addressbook.AddressBook")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/Greeter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/Greeter.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/Greeter.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/Greeter.java Tue Mar 4 19:51:32 2008
@@ -18,12 +18,12 @@
*/
package org.apache.axis2.jaxws.sample.dlwmin.sei;
+import org.apache.axis2.jaxws.sample.dlwmin.types.TestBean;
+
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
-
-import org.apache.axis2.jaxws.sample.dlwmin.types.TestBean;
@WebService(targetNamespace = "http://apache.org/axis2/jaxws/sample/dlwmin", name = "Greeter")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/TestException3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/TestException3.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/TestException3.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/dlwmin/sei/TestException3.java Tue Mar 4 19:51:32 2008
@@ -18,9 +18,9 @@
*/
package org.apache.axis2.jaxws.sample.dlwmin.sei;
-import javax.xml.ws.WebFault;
-
import org.apache.axis2.jaxws.sample.dlwmin.types.ProcessFault3;
+
+import javax.xml.ws.WebFault;
/**
* Checked Exception with a WebFault that locates an existing JAXB Bean
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/DocLitBarePortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/DocLitBarePortTypeImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/DocLitBarePortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/DocLitBarePortTypeImpl.java Tue Mar 4 19:51:32 2008
@@ -22,15 +22,15 @@
*/
package org.apache.axis2.jaxws.sample.doclitbare;
-import javax.jws.WebParam;
-import javax.jws.WebParam.Mode;
-import javax.jws.WebService;
-import javax.xml.ws.Holder;
-
import org.apache.axis2.jaxws.sample.doclitbare.sei.DocLitBarePortType;
import org.apache.axis2.jaxws.sample.doclitbare.sei.FaultBeanWithWrapper;
import org.apache.axis2.jaxws.sample.doclitbare.sei.SimpleFault;
import org.test.sample.doclitbare.Composite;
+
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
@WebService(serviceName="BareDocLitService",
endpointInterface="org.apache.axis2.jaxws.sample.doclitbare.sei.DocLitBarePortType")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/BareDocLitService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/BareDocLitService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/BareDocLitService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/BareDocLitService.java Tue Mar 4 19:51:32 2008
@@ -19,14 +19,13 @@
*/
package org.apache.axis2.jaxws.sample.doclitbare.sei;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/DocLitBarePortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/DocLitBarePortType.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/DocLitBarePortType.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/DocLitBarePortType.java Tue Mar 4 19:51:32 2008
@@ -19,6 +19,8 @@
*/
package org.apache.axis2.jaxws.sample.doclitbare.sei;
+import org.test.sample.doclitbare.Composite;
+
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
@@ -28,8 +30,6 @@
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.ws.Holder;
-
-import org.test.sample.doclitbare.Composite;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/FaultBeanWithWrapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/FaultBeanWithWrapper.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/FaultBeanWithWrapper.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/FaultBeanWithWrapper.java Tue Mar 4 19:51:32 2008
@@ -19,9 +19,9 @@
*/
package org.apache.axis2.jaxws.sample.doclitbare.sei;
-import javax.xml.ws.WebFault;
-
import org.test.sample.doclitbare.BaseFault;
+
+import javax.xml.ws.WebFault;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/DocLitBareMinPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/DocLitBareMinPortTypeImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/DocLitBareMinPortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/DocLitBareMinPortTypeImpl.java Tue Mar 4 19:51:32 2008
@@ -18,10 +18,9 @@
*/
package org.apache.axis2.jaxws.sample.doclitbaremin;
-import javax.jws.WebService;
-import javax.xml.ws.Holder;
-
import org.apache.axis2.jaxws.sample.doclitbaremin.sei.DocLitBareMinPortType;
+
+import javax.jws.WebService;
/**
* Test DocLitBareMinPort
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/BareDocLitMinService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/BareDocLitMinService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/BareDocLitMinService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/BareDocLitMinService.java Tue Mar 4 19:51:32 2008
@@ -19,14 +19,13 @@
*/
package org.apache.axis2.jaxws.sample.doclitbaremin.sei;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/DocLitBareMinPortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/DocLitBareMinPortType.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/DocLitBareMinPortType.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/DocLitBareMinPortType.java Tue Mar 4 19:51:32 2008
@@ -19,15 +19,12 @@
*/
package org.apache.axis2.jaxws.sample.doclitbaremin.sei;
-import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
-import javax.jws.WebParam.Mode;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
-import javax.xml.ws.Holder;
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceFault_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceFault_Exception.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceFault_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceFault_Exception.java Tue Mar 4 19:51:32 2008
@@ -19,8 +19,6 @@
*/
package org.apache.axis2.jaxws.sample.faults;
-import javax.xml.ws.WebFault;
-
import org.test.faults.FaultyWebServiceFault;
/**
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortType.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortType.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortType.java Tue Mar 4 19:51:32 2008
@@ -19,7 +19,7 @@
*/
package org.apache.axis2.jaxws.sample.faults;
-import java.util.concurrent.Future;
+import org.test.faults.FaultyWebServiceResponse;
import javax.jws.WebMethod;
import javax.jws.WebParam;
@@ -29,8 +29,7 @@
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.Response;
import javax.xml.ws.ResponseWrapper;
-
-import org.test.faults.FaultyWebServiceResponse;
+import java.util.concurrent.Future;
@WebService(name = "FaultyWebServicePortType", targetNamespace = "http://org/test/faults")
public interface FaultyWebServicePortType {
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortTypeImpl.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServicePortTypeImpl.java Tue Mar 4 19:51:32 2008
@@ -22,14 +22,13 @@
*/
package org.apache.axis2.jaxws.sample.faults;
-import java.util.concurrent.Future;
+import org.test.faults.FaultyWebServiceFault;
+import org.test.faults.FaultyWebServiceResponse;
import javax.jws.WebService;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
-
-import org.test.faults.FaultyWebServiceFault;
-import org.test.faults.FaultyWebServiceResponse;
+import java.util.concurrent.Future;
@WebService(serviceName="FaultyWebServiceService",
endpointInterface="org.apache.axis2.jaxws.sample.faults.FaultyWebServicePortType")
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceService.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceService.java Tue Mar 4 19:51:32 2008
@@ -19,14 +19,13 @@
*/
package org.apache.axis2.jaxws.sample.faults;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/BaseFault_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/BaseFault_Exception.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/BaseFault_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/BaseFault_Exception.java Tue Mar 4 19:51:32 2008
@@ -19,9 +19,9 @@
*/
package org.apache.axis2.jaxws.sample.faultsservice;
-import javax.xml.ws.WebFault;
-
import org.test.polymorphicfaults.BaseFault;
+
+import javax.xml.ws.WebFault;
/**
* This class was generated by the JAXWS SI.
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/ComplexFault_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/ComplexFault_Exception.java?rev=633761&r1=633760&r2=633761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/ComplexFault_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/ComplexFault_Exception.java Tue Mar 4 19:51:32 2008
@@ -19,9 +19,9 @@
*/
package org.apache.axis2.jaxws.sample.faultsservice;
-import javax.xml.ws.WebFault;
-
import org.test.polymorphicfaults.ComplexFault;
+
+import javax.xml.ws.WebFault;
/**
* This class was generated by the JAXWS SI.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org