Author: woodroy Date: Tue Mar 4 12:15:46 2008 New Revision: 633619 URL: http://svn.apache.org/viewvc?rev=633619&view=rev Log: Initial pass at firing up server for individual jaxws-integration tests
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTest.java - copied, changed from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTest.java - copied, changed from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12DispatchTest.java - copied, changed from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12Dispatch.java Removed: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12Dispatch.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/GenericOperationProviderTest.java webservices/axis2/trunk/java/modules/jaxws/test/client/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/anytype/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/proxy/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/rpclit/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/parallelasync/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/xmlhttp/clientTests/ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/xmlhttp/provider/ Modified: webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/JAXWSTest.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/message/SOAP12Tests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/JAXBContextTest.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SOAPFaultProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageMUProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringProviderTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyNonWrappedTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/mtom1/SendImageInterface.java Modified: webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml Tue Mar 4 12:15:46 2008 @@ -1075,6 +1075,18 @@ <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>--> <includes> <include>**/*Test.java</include> + <include>**/SOAP12Tests.java</include> + <include>**/StringProviderTests.java</include> + <include>**/SoapFaultProviderTests.java</include> + <include>**/StringMessageProviderTests.java</include> + <include>**/SourceProviderTests.java</include> + <include>**/SourceMessageProviderTests.java</include> + <include>**/SoapMessageProviderTests.java</include> + <include>**/SoapMessageMUProviderTests.java</include> + <include>**/JAXBProviderTests.java</include> + <include>**/ProxyTests.java</include> + <include>**/ProxyNonWrappedTests.java</include> + <include>**/RPCProxyTests.java</include> </includes> <systemProperties> <property> Copied: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTest.java (from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTests.java) URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTest.java?p2=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTest.java&p1=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTests.java&r1=633234&r2=633619&rev=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/DispatchSoapActionTest.java Tue Mar 4 12:15:46 2008 @@ -33,14 +33,37 @@ import org.apache.axis2.jaxws.client.soapaction.GetPriceResponseType; import org.apache.axis2.jaxws.client.soapaction.GetPriceType; import org.apache.axis2.jaxws.client.soapaction.ObjectFactory; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; /** * A suite of SOAPAction related tests for the dispatch client */ -public class DispatchSoapActionTests extends TestCase { +public class DispatchSoapActionTest extends TestCase { private static final String targetNamespace = "http://jaxws.axis2.apache.org/client/soapaction"; private static final String portName = "BookStorePort"; + + public DispatchSoapActionTest(String name) { + super(name); + } + + 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(); + } /** * Invoke an operation this is defined in the WSDL as having a SOAPAction. Copied: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTest.java (from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTests.java) URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTest.java?p2=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTest.java&p1=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTests.java&r1=633234&r2=633619&rev=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/ProxySoapActionTest.java Tue Mar 4 12:15:46 2008 @@ -21,17 +21,37 @@ import junit.framework.TestCase; import org.apache.axis2.jaxws.client.soapaction.BookStore; import org.apache.axis2.jaxws.client.soapaction.BookStoreService; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; /** * A suite of SOAPAction related tests for the dynamic proxy client */ -public class ProxySoapActionTests extends TestCase { +public class ProxySoapActionTest extends TestCase { - public ProxySoapActionTests(String name) { + public ProxySoapActionTest(String name) { super(name); } + + 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 void testSendRequestWithSoapAction() { TestLogger.logger.debug("----------------------------------"); TestLogger.logger.debug("test: " + getName()); Copied: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12DispatchTest.java (from r633234, webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12Dispatch.java) URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12DispatchTest.java?p2=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12DispatchTest.java&p1=webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12Dispatch.java&r1=633234&r2=633619&rev=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12Dispatch.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/SOAP12DispatchTest.java Tue Mar 4 12:15:46 2008 @@ -18,7 +18,8 @@ */ package org.apache.axis2.jaxws.dispatch; -import org.apache.axis2.jaxws.description.builder.MDQConstants; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; import javax.xml.namespace.QName; import javax.xml.transform.Source; @@ -32,16 +33,19 @@ import javax.xml.ws.soap.SOAPBinding; import javax.xml.ws.soap.SOAPFaultException; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; - import junit.framework.TestCase; +import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.description.builder.MDQConstants; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; + /** * This class uses the JAX-WS Dispatch API to test sending and receiving * messages using SOAP 1.2. */ -public class SOAP12Dispatch extends TestCase { +public class SOAP12DispatchTest extends TestCase { private static final QName QNAME_SERVICE = new QName( "http://org/apache/axis2/jaxws/test/SOAP12", "SOAP12Service"); @@ -76,8 +80,24 @@ sampleRequest + sampleEnvelopeTail; - public SOAP12Dispatch(String name) { + public SOAP12DispatchTest(String name) { super(name); + } + + 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(); } /** Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/JAXWSTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/JAXWSTest.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/JAXWSTest.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/framework/JAXWSTest.java Tue Mar 4 12:15:46 2008 @@ -24,6 +24,44 @@ import junit.framework.TestSuite; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.anytype.tests.AnyTypeTests; +import org.apache.axis2.jaxws.client.DispatchSoapActionTest; +import org.apache.axis2.jaxws.client.ProxySoapActionTest; +import org.apache.axis2.jaxws.dispatch.DispatchTestSuite; +import org.apache.axis2.jaxws.dispatch.SOAP12DispatchTest; +import org.apache.axis2.jaxws.injection.ResourceInjectionTests; +import org.apache.axis2.jaxws.message.SOAP12Tests; +import org.apache.axis2.jaxws.misc.JAXBContextTest; +import org.apache.axis2.jaxws.nonanonymous.complextype.NonAnonymousComplexTypeTests; +import org.apache.axis2.jaxws.polymorphic.shape.tests.PolymorphicTests; +import org.apache.axis2.jaxws.provider.JAXBProviderTests; +import org.apache.axis2.jaxws.provider.SOAPFaultProviderTests; +import org.apache.axis2.jaxws.provider.SoapMessageMUProviderTests; +import org.apache.axis2.jaxws.provider.SourceMessageProviderTests; +import org.apache.axis2.jaxws.provider.SourceProviderTests; +import org.apache.axis2.jaxws.provider.StringMessageProviderTests; +import org.apache.axis2.jaxws.provider.StringProviderTests; +import org.apache.axis2.jaxws.proxy.GorillaDLWProxyTests; +import org.apache.axis2.jaxws.proxy.ProxyTests; +import org.apache.axis2.jaxws.proxy.RPCLitSWAProxyTests; +import org.apache.axis2.jaxws.proxy.RPCProxyTests; +import org.apache.axis2.jaxws.proxy.SOAP12ProxyTests; +import org.apache.axis2.jaxws.rpclit.enumtype.tests.RPCLitEnumTests; +import org.apache.axis2.jaxws.rpclit.stringarray.tests.RPCLitStringArrayTests; +import org.apache.axis2.jaxws.sample.AddNumbersHandlerTests; +import org.apache.axis2.jaxws.sample.AddNumbersTests; +import org.apache.axis2.jaxws.sample.AddressBookTests; +import org.apache.axis2.jaxws.sample.BareTests; +import org.apache.axis2.jaxws.sample.DLWMinTests; +import org.apache.axis2.jaxws.sample.FaultsServiceTests; +import org.apache.axis2.jaxws.sample.WSGenTests; +import org.apache.axis2.jaxws.security.BasicAuthSecurityTests; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.datasource.DispatchXMessageDataSource; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.jaxb.DispatchXPayloadJAXB; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.source.DispatchXMessageSource; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.source.DispatchXPayloadSource; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.string.DispatchXMessageString; +import org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.string.DispatchXPayloadString; import org.apache.log4j.BasicConfigurator; public class JAXWSTest extends TestCase { @@ -93,12 +131,13 @@ suite.addTestSuite(BasicEndpointTests.class); suite.addTestSuite(JAXWSServerTests.class); */ -/* // --------- Integration Tests -------------- + // --------- Integration Tests -------------- + /* suite = DispatchTestSuite.addTestSuites(suite); suite.addTestSuite(JAXBContextTest.class); - suite.addTestSuite(SOAP12Dispatch.class); - suite.addTestSuite(DispatchSoapActionTests.class); - suite.addTestSuite(ProxySoapActionTests.class); + suite.addTestSuite(SOAP12DispatchTest.class); + suite.addTestSuite(DispatchSoapActionTest.class); + suite.addTestSuite(ProxySoapActionTest.class); suite.addTestSuite(SOAP12Tests.class); suite.addTestSuite(StringProviderTests.class); suite.addTestSuite(SOAPFaultProviderTests.class); @@ -152,21 +191,21 @@ // Commented due to test failure... // suite.addTestSuite(StringListTests.class); suite.addTestSuite(RPCLitStringArrayTests.class); - -*/// END OF Integration Tests +*/ +// END OF Integration Tests // Start (and stop) the server only once for all the tests TestSetup testSetup = new TestSetup(suite) { public void setUp() { TestLogger.logger.debug("Starting the server."); - // StartServer startServer = new StartServer("server1"); - // startServer.testStartServer(); + // StartServer startServer = new StartServer("server1"); + // startServer.testStartServer(); } public void tearDown() { TestLogger.logger.debug("Stopping the server"); - // StopServer stopServer = new StopServer("server1"); - // stopServer.testStopServer(); + // StopServer stopServer = new StopServer("server1"); + // stopServer.testStopServer(); } }; return testSetup; Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/message/SOAP12Tests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/message/SOAP12Tests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/message/SOAP12Tests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/message/SOAP12Tests.java Tue Mar 4 12:15:46 2008 @@ -28,11 +28,14 @@ import org.apache.axiom.om.OMNamespace; import org.apache.axiom.soap.SOAPEnvelope; import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.message.factory.MessageFactory; import org.apache.axis2.jaxws.message.factory.XMLStringBlockFactory; import org.apache.axis2.jaxws.message.util.Reader2Writer; import org.apache.axis2.jaxws.registry.FactoryRegistry; import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; /** * This suite is used to test the creation of messages based on SOAP 1.2 @@ -64,6 +67,23 @@ public SOAP12Tests(String name) { super(name); } + + 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(); + } + /** * Simulate creating a SOAP 1.2 message when the business object Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/JAXBContextTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/JAXBContextTest.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/JAXBContextTest.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/JAXBContextTest.java Tue Mar 4 12:15:46 2008 @@ -28,78 +28,99 @@ import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; +import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.message.databinding.JAXBUtils; import org.apache.axis2.jaxws.utility.JavaUtils; +import org.apache.log4j.BasicConfigurator; +import junit.extensions.TestSetup; import junit.framework.TestCase; /** - * Tests Namespace to Package Algorithmh + * Tests Namespace to Package Algorithm * */ public class JAXBContextTest extends TestCase { + static { + BasicConfigurator.configure(); + } + + public JAXBContextTest(String name) { + super(name); + } + + public void setUp() { + TestLogger.logger.debug("Starting the server for JAXBContextTest"); + StartServer startServer = new StartServer("server1"); + startServer.testStartServer(); + } + + public void tearDown() { + TestLogger.logger.debug("Stopping the server for: " +this.getName()); + StopServer stopServer = new StopServer("server1"); + stopServer.testStopServer(); + } /** * Test basic functionality of JAXBUtils pooling * @throws Exception */ public void test01() throws JAXBException { - - // Get a JAXBContext - TreeSet<String> context1 = new TreeSet<String>(); - context1.add("org.test.addnumbers"); - context1.add("org.test.anytype"); - - JAXBContext jaxbContext1 = JAXBUtils.getJAXBContext(context1); - - // Assert that the JAXBContext was found and the context contains the two valid packages - assertTrue(jaxbContext1 != null); - assertTrue(context1.contains("org.test.addnumbers")); - assertTrue(context1.contains("org.test.anytype")); - - // Repeat with the same packages - TreeSet<String> context2 = new TreeSet<String>(); - context2.add("org.test.addnumbers"); - context2.add("org.test.anytype"); - - JAXBContext jaxbContext2 = JAXBUtils.getJAXBContext(context2); - - // The following assertion is probably true,but GC may have wiped out the weak reference - //assertTrue(jaxbContext2 == jaxbContext1); - assertTrue(jaxbContext2 != null); - assertTrue(jaxbContext2.toString().equals(jaxbContext1.toString())); - assertTrue(context2.contains("org.test.addnumbers")); - assertTrue(context2.contains("org.test.anytype")); - - // Repeat with the same packages + an invalid package - TreeSet<String> context3 = new TreeSet<String>(); - context3.add("org.test.addnumbers"); - context3.add("org.test.anytype"); - context3.add("my.grandma.loves.jaxws"); - - JAXBContext jaxbContext3 = JAXBUtils.getJAXBContext(context3); - - // The following assertion is probably true,but GC may have wiped out the weak reference - //assertTrue(jaxbContext3 == jaxbContext1); - assertTrue(jaxbContext3 != null); - assertTrue(jaxbContext1.toString().equals(jaxbContext1.toString())); - assertTrue(context3.contains("org.test.addnumbers")); - assertTrue(context3.contains("org.test.anytype")); - // The invalid package should now be retained...this is due - // a minor semantic change to avoid this side effect. - assertTrue(context3.contains("my.grandma.loves.jaxws")); - - // Repeat with a subset of packages - TreeSet<String> context4 = new TreeSet<String>(); - context4.add("org.test.addnumbers"); - - - JAXBContext jaxbContext4 = JAXBUtils.getJAXBContext(context4); - - assertTrue(jaxbContext4 != null); - assertTrue(jaxbContext4 != jaxbContext3); - assertTrue(context4.contains("org.test.addnumbers")); - - + // Get a JAXBContext + TreeSet<String> context1 = new TreeSet<String>(); + context1.add("org.test.addnumbers"); + context1.add("org.test.anytype"); + + JAXBContext jaxbContext1 = JAXBUtils.getJAXBContext(context1); + + // Assert that the JAXBContext was found and the context contains the two valid packages + assertTrue(jaxbContext1 != null); + assertTrue(context1.contains("org.test.addnumbers")); + assertTrue(context1.contains("org.test.anytype")); + + // Repeat with the same packages + TreeSet<String> context2 = new TreeSet<String>(); + context2.add("org.test.addnumbers"); + context2.add("org.test.anytype"); + + JAXBContext jaxbContext2 = JAXBUtils.getJAXBContext(context2); + + // The following assertion is probably true,but GC may have wiped out the weak reference + //assertTrue(jaxbContext2 == jaxbContext1); + assertTrue(jaxbContext2 != null); + assertTrue(jaxbContext2.toString().equals(jaxbContext1.toString())); + assertTrue(context2.contains("org.test.addnumbers")); + assertTrue(context2.contains("org.test.anytype")); + + // Repeat with the same packages + an invalid package + TreeSet<String> context3 = new TreeSet<String>(); + context3.add("org.test.addnumbers"); + context3.add("org.test.anytype"); + context3.add("my.grandma.loves.jaxws"); + + JAXBContext jaxbContext3 = JAXBUtils.getJAXBContext(context3); + + // The following assertion is probably true,but GC may have wiped out the weak reference + //assertTrue(jaxbContext3 == jaxbContext1); + assertTrue(jaxbContext3 != null); + assertTrue(jaxbContext1.toString().equals(jaxbContext1.toString())); + assertTrue(context3.contains("org.test.addnumbers")); + assertTrue(context3.contains("org.test.anytype")); + // The invalid package should now be retained...this is due + // a minor semantic change to avoid this side effect. + assertTrue(context3.contains("my.grandma.loves.jaxws")); + + // Repeat with a subset of packages + TreeSet<String> context4 = new TreeSet<String>(); + context4.add("org.test.addnumbers"); + + + JAXBContext jaxbContext4 = JAXBUtils.getJAXBContext(context4); + + assertTrue(jaxbContext4 != null); + assertTrue(jaxbContext4 != jaxbContext3); + assertTrue(context4.contains("org.test.addnumbers")); } -} +} \ No newline at end of file Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java Tue Mar 4 12:15:46 2008 @@ -33,6 +33,9 @@ import org.apache.axiom.attachments.ByteArrayDataSource; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; import org.test.mtom.ImageDepot; import org.test.mtom.ObjectFactory; import org.test.mtom.SendImage; @@ -65,6 +68,10 @@ private QName serviceName = new QName("http://ws.apache.org/axis2", "JAXBProviderService"); DataSource stringDS, imageDS; + public JAXBProviderTests(String name) { + super(name); + } + protected void setUp() throws Exception { super.setUp(); @@ -77,17 +84,22 @@ ImageInputStream fiis = new FileImageInputStream(file); Image image = ImageIO.read(fiis); imageDS = new DataSourceImpl("image/jpeg","test.jpg",image); + TestLogger.logger.debug("Starting the server for: " +this.getClass().getName()); + StartServer startServer = new StartServer("server1"); + startServer.testStartServer(); } - protected void tearDown() throws Exception { - super.tearDown(); + static { + BasicConfigurator.configure(); } - public JAXBProviderTests(String name) { - super(name); + public void tearDown() { + TestLogger.logger.debug("Stopping the server for: " +this.getClass().getName()); + StopServer stopServer = new StopServer("server1"); + stopServer.testStopServer(); } - + /** * test String * @throws Exception Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SOAPFaultProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SOAPFaultProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SOAPFaultProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SOAPFaultProviderTests.java Tue Mar 4 12:15:46 2008 @@ -24,6 +24,11 @@ import javax.xml.ws.Service; import javax.xml.ws.soap.SOAPBinding; +import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; + import junit.framework.TestCase; /** @@ -52,6 +57,23 @@ public SOAPFaultProviderTests(String name) { super(name); } + + 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 Dispatch<String> getDispatch() { Service svc = Service.create(serviceName); Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageMUProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageMUProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageMUProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageMUProviderTests.java Tue Mar 4 12:15:46 2008 @@ -22,6 +22,12 @@ import javax.xml.ws.soap.SOAPBinding; import javax.xml.ws.BindingProvider; import javax.xml.soap.SOAPMessage; + +import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; + import junit.framework.TestCase; /** @@ -39,16 +45,24 @@ public static final String bindingID = SOAPBinding.SOAP11HTTP_BINDING; public static final Service.Mode mode = Service.Mode.MESSAGE; - protected void setUp() throws Exception { - super.setUp(); + public SoapMessageMUProviderTests(String name) { + super(name); } - protected void tearDown() throws Exception { - super.tearDown(); + static { + BasicConfigurator.configure(); } - - public SoapMessageMUProviderTests(String name) { - super(name); + + 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(); } /** Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java Tue Mar 4 12:15:46 2008 @@ -40,8 +40,11 @@ import javax.xml.ws.soap.SOAPBinding; import javax.xml.ws.soap.SOAPFaultException; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.provider.soapmsg.SoapMessageProvider; import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; /** * Tests Dispatch<SOAPMessage> client and a Provider<SOAPMessage> service. @@ -85,19 +88,26 @@ SoapMessageProvider.XML_WSE_REQUEST + "</invoke_str></ns2:invokeOp>"; - - protected void setUp() throws Exception { - super.setUp(); + public SoapMessageProviderTests(String name) { + super(name); } - protected void tearDown() throws Exception { - super.tearDown(); + static { + BasicConfigurator.configure(); } - - public SoapMessageProviderTests(String name) { - super(name); + + 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(); + } + /** * Sends an SOAPMessage containing only xml data to the web service. * Receives a response containing just xml data. Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java Tue Mar 4 12:15:46 2008 @@ -19,6 +19,9 @@ package org.apache.axis2.jaxws.provider; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; import java.io.File; import java.io.FileInputStream; @@ -36,21 +39,26 @@ private QName serviceName = new QName("http://ws.apache.org/axis2", "SourceMessageProviderService"); private String xmlDir = "xml"; - - protected void setUp() throws Exception { - super.setUp(); - } - - protected void tearDown() throws Exception { - super.tearDown(); + static { + BasicConfigurator.configure(); } - + public SourceMessageProviderTests(String name) { super(name); } - + 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 void testProviderSource(){ try{ String resourceDir = new File(providerResourceDir, xmlDir).getAbsolutePath(); Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java Tue Mar 4 12:15:46 2008 @@ -19,6 +19,9 @@ package org.apache.axis2.jaxws.provider; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; import java.io.ByteArrayInputStream; import java.io.File; @@ -46,18 +49,26 @@ private String xmlDir = "xml"; - protected void setUp() throws Exception { - super.setUp(); - } - - protected void tearDown() throws Exception { - super.tearDown(); - } - public SourceProviderTests(String name) { super(name); } + 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 Dispatch<Source> getDispatch() { Service svc = Service.create(serviceName); svc.addPort(portName, null, endpointUrl); Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java Tue Mar 4 12:15:46 2008 @@ -19,6 +19,9 @@ package org.apache.axis2.jaxws.provider; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; import javax.xml.namespace.QName; import javax.xml.ws.Dispatch; @@ -30,18 +33,26 @@ String xmlString = "<test>test input</test>"; private QName serviceName = new QName("http://ws.apache.org/axis2", "StringMessageProviderService"); - protected void setUp() throws Exception { - super.setUp(); - } - - protected void tearDown() throws Exception { - super.tearDown(); + static { + BasicConfigurator.configure(); } public StringMessageProviderTests(String name) { super(name); } + 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 void testProviderString() throws Exception { TestLogger.logger.debug("---------------------------------------"); TestLogger.logger.debug("test: " + getName()); Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringProviderTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringProviderTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringProviderTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/StringProviderTests.java Tue Mar 4 12:15:46 2008 @@ -19,6 +19,9 @@ package org.apache.axis2.jaxws.provider; import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; +import org.apache.log4j.BasicConfigurator; import javax.xml.namespace.QName; import javax.xml.soap.SOAPFault; @@ -33,18 +36,26 @@ String xmlString = "<invoke>test input</invoke>"; private QName serviceName = new QName("http://ws.apache.org/axis2", "StringProviderService"); - protected void setUp() throws Exception { - super.setUp(); - } - - protected void tearDown() throws Exception { - super.tearDown(); - } - public StringProviderTests(String name) { super(name); } + 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 Dispatch<String> getDispatch() { Service svc = Service.create(serviceName); svc.addPort(portName, null, endpointUrl); Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyNonWrappedTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyNonWrappedTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyNonWrappedTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyNonWrappedTests.java Tue Mar 4 12:15:46 2008 @@ -28,9 +28,13 @@ import javax.xml.ws.Service; import junit.framework.TestCase; + +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.proxy.doclitnonwrapped.sei.DocLitnonWrappedProxy; import org.apache.axis2.jaxws.proxy.doclitnonwrapped.sei.ProxyDocLitUnwrappedService; import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; import org.test.proxy.doclitnonwrapped.Invoke; import org.test.proxy.doclitnonwrapped.ObjectFactory; import org.test.proxy.doclitnonwrapped.ReturnType; @@ -45,10 +49,6 @@ private String axisEndpoint = "http://localhost:6060/axis2/services/ProxyDocLitUnwrappedService.DocLitnonWrappedImplPort"; private QName portName = new QName("http://org.apache.axis2.proxy.doclitwrapped", "ProxyDocLitWrappedPort"); private String wsdlLocation = System.getProperty("basedir",".")+"/"+"test-resources/wsdl/ProxyDocLitnonWrapped.wsdl"; - public ProxyNonWrappedTests() { - super(); - // TODO Auto-generated constructor stub - } /** * @param arg0 @@ -56,6 +56,28 @@ public ProxyNonWrappedTests(String arg0) { super(arg0); // TODO Auto-generated constructor stub + } + + + public ProxyNonWrappedTests() { + 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 void testInvoke(){ Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java Tue Mar 4 12:15:46 2008 @@ -29,9 +29,13 @@ import javax.xml.ws.Service; import junit.framework.TestCase; + +import org.apache.axis2.jaxws.TestLogger; +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.proxy.doclitwrapped.sei.DocLitWrappedProxy; import org.apache.axis2.jaxws.proxy.doclitwrapped.sei.ProxyDocLitWrappedService; -import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; import org.test.proxy.doclitwrapped.ReturnType; public class ProxyTests extends TestCase { @@ -42,7 +46,27 @@ "ProxyDocLitWrappedPort"); private String wsdlLocation = System.getProperty("basedir",".")+"/"+"test/org/apache/axis2/jaxws/proxy/doclitwrapped/META-INF/ProxyDocLitWrapped.wsdl"; private boolean runningOnAxis = true; + + static { + BasicConfigurator.configure(); + } + + public ProxyTests(String name) { + super(name); + } + + 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 void testMultipleServiceCalls(){ try{ if(!runningOnAxis){ Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java Tue Mar 4 12:15:46 2008 @@ -35,10 +35,14 @@ import javax.xml.ws.WebServiceException; import junit.framework.TestCase; + +import org.apache.axis2.jaxws.framework.StartServer; +import org.apache.axis2.jaxws.framework.StopServer; import org.apache.axis2.jaxws.proxy.rpclit.RPCLitImpl; import org.apache.axis2.jaxws.proxy.rpclit.sei.RPCFault; import org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit; import org.apache.axis2.jaxws.TestLogger; +import org.apache.log4j.BasicConfigurator; import org.test.proxy.rpclit.ComplexAll; import org.test.proxy.rpclit.Enum; @@ -50,6 +54,27 @@ private QName portName = new QName("http://org.apache.axis2.jaxws.proxy.rpclit", "RPCLit"); private String wsdlLocation = System.getProperty("basedir",".")+"/"+"test/org/apache/axis2/jaxws/proxy/rpclit/META-INF/RPCLit.wsdl"; + + public RPCProxyTests() { + 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(); + } /** * Utility method to get the proxy Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/mtom1/SendImageInterface.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/mtom1/SendImageInterface.java?rev=633619&r1=633618&r2=633619&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/mtom1/SendImageInterface.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/mtom1/SendImageInterface.java Tue Mar 4 12:15:46 2008 @@ -35,8 +35,9 @@ * */ @WebService(name = "sendImageInterface", - targetNamespace = "urn://mtom1.sample.jaxws.axis2.apache.org", - wsdlLocation = "META-INF/samplemtomjpeg.wsdl") +// targetNamespace="http://mtom1.sample.jaxws.axis2.apache.org") + targetNamespace = "urn://mtom1.sample.jaxws.axis2.apache.org") + // wsdlLocation = "META-INF/samplemtomjpeg.wsdl") public interface SendImageInterface { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]