axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r527766 [2/4] - in /webservices/axis2/trunk/java/modules/jaxws/test: org/apache/axis2/jaxws/ org/apache/axis2/jaxws/anytype/tests/ org/apache/axis2/jaxws/attachments/ org/apache/axis2/jaxws/client/ org/apache/axis2/jaxws/client/soapaction/s...
Date Thu, 12 Apr 2007 04:28:37 GMT
Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/StringDispatch.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/StringDispatch.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/StringDispatch.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/StringDispatch.java Wed Apr 11 21:28:29 2007
@@ -29,6 +29,7 @@
 import javax.xml.ws.WebServiceException;
 
 import junit.framework.TestCase;
+import org.apache.axis2.jaxws.TestLogger;
 
 public class StringDispatch extends TestCase {
 
@@ -36,8 +37,8 @@
      * Invoke a sync Dispatch<String> in PAYLOAD mode
      */
     public void testSyncPayloadMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -46,11 +47,11 @@
                 String.class, Service.Mode.PAYLOAD);
         
         // Invoke the Dispatch
-        System.out.println(">> Invoking sync Dispatch");
+        TestLogger.logger.debug(">> Invoking sync Dispatch");
         String response = dispatch.invoke(DispatchTestConstants.sampleBodyContent);
 
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(!response.contains("soap"));
@@ -66,8 +67,8 @@
      * WebServiceException.
      */
     public void testSyncPayloadMode_exception() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -76,7 +77,7 @@
                 String.class, Service.Mode.PAYLOAD);
         
         // Invoke the Dispatch
-        System.out.println(">> Invoking sync Dispatch");
+        TestLogger.logger.debug(">> Invoking sync Dispatch");
         Exception e = null;
         try {
             // The _bad string passes "THROW EXCEPTION", which causes the echo function on the
@@ -95,8 +96,8 @@
      * Invoke a sync Dispatch<String> in MESSAGE mode
      */
     public void testSyncWithMessageMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -105,11 +106,11 @@
                 String.class, Service.Mode.MESSAGE);
         
         // Invoke the Dispatch
-        System.out.println(">> Invoking sync Dispatch");
+        TestLogger.logger.debug(">> Invoking sync Dispatch");
         String response = dispatch.invoke(DispatchTestConstants.sampleSoapMessage);
 
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(response.contains("soap"));
@@ -122,8 +123,8 @@
      * Invoke a Dispatch<String> using the async callback API in PAYLOAD mode
 	 */
     public void testAsyncCallbackPayloadMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -133,18 +134,18 @@
 
         // Create the callback for async responses
         AsyncCallback<String> callback = new AsyncCallback<String>();
-        
-        System.out.println(">> Invoking async (callback) Dispatch");
+
+        TestLogger.logger.debug(">> Invoking async (callback) Dispatch");
         Future<?> monitor = dispatch.invokeAsync(DispatchTestConstants.sampleBodyContent, callback);
 	        
         while (!monitor.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         
         String response = callback.getValue();
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(!response.contains("soap"));
@@ -157,8 +158,8 @@
      * Invoke a Dispatch<String> using the async callback API in MESSAGE mode
      */
     public void testAsyncCallbackMessageMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -168,18 +169,18 @@
 
         // Create the callback for async responses
         AsyncCallback<String> callback = new AsyncCallback<String>();
-        
-        System.out.println(">> Invoking async (callback) Dispatch with Message Mode");
+
+        TestLogger.logger.debug(">> Invoking async (callback) Dispatch with Message Mode");
         Future<?> monitor = dispatch.invokeAsync(DispatchTestConstants.sampleSoapMessage, callback);
     
         while (!monitor.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         
         String response = callback.getValue();
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(response.contains("soap"));
@@ -192,8 +193,8 @@
      * Invoke a Dispatch<String> using the async polling API in PAYLOAD mode
      */
     public void testAsyncPollingPayloadMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -201,17 +202,17 @@
         Dispatch<String> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, 
                 String.class, Service.Mode.PAYLOAD);
 
-        System.out.println(">> Invoking async (polling) Dispatch");
+        TestLogger.logger.debug(">> Invoking async (polling) Dispatch");
         Response<String> asyncResponse = dispatch.invokeAsync(DispatchTestConstants.sampleBodyContent);
             
         while (!asyncResponse.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         
         String response = asyncResponse.get();
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(!response.contains("soap"));
@@ -224,8 +225,8 @@
      * Invoke a Dispatch<String> using the async polling API in MESSAGE mode
      */
     public void testAsyncPollingMessageMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -233,17 +234,17 @@
         Dispatch<String> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, 
                 String.class, Service.Mode.MESSAGE);
 
-        System.out.println(">> Invoking async (polling) Dispatch with Message Mode");
+        TestLogger.logger.debug(">> Invoking async (polling) Dispatch with Message Mode");
         Response<String> asyncResponse = dispatch.invokeAsync(DispatchTestConstants.sampleSoapMessage);
     
         while (!asyncResponse.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         
         String response = asyncResponse.get();
         assertNotNull("dispatch invoke returned null", response);
-        System.out.println(response);
+        TestLogger.logger.debug(response);
         
         // Check to make sure the content is correct
         assertTrue(response.contains("soap"));
@@ -256,8 +257,8 @@
      * Invoke a Dispatch<String> one-way in PAYLOAD mode 
      */
     public void testOneWayPayloadMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -265,7 +266,7 @@
         Dispatch<String> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, 
                 String.class, Service.Mode.PAYLOAD);
 
-        System.out.println(">> Invoking one-way Dispatch");
+        TestLogger.logger.debug(">> Invoking one-way Dispatch");
         dispatch.invokeOneWay(DispatchTestConstants.sampleBodyContent);
     }
     
@@ -273,8 +274,8 @@
      * Invoke a Dispatch<String> one-way in MESSAGE mode 
 	 */
     public void testOneWayMessageMode() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -282,14 +283,14 @@
         Dispatch<String> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, 
                 String.class, Service.Mode.MESSAGE);
 
-        System.out.println(">> Invoking one-way Dispatch");
+        TestLogger.logger.debug(">> Invoking one-way Dispatch");
         dispatch.invokeOneWay(DispatchTestConstants.sampleSoapMessage);
 	}
     
     
     public void testSyncPayloadMode_badHostName() {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -300,7 +301,7 @@
         // Invoke the Dispatch
         Throwable ttemp = null;
         try {
-            System.out.println(">> Invoking sync Dispatch");
+            TestLogger.logger.debug(">> Invoking sync Dispatch");
             String response = dispatch.invoke(DispatchTestConstants.sampleBodyContent);
         } catch (Throwable t) {
             assertTrue(t instanceof WebServiceException);
@@ -312,8 +313,8 @@
     }
     
     public void testAsyncCallbackMessageMode_badHostName() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -323,12 +324,12 @@
 
         // Create the callback for async responses
         AsyncCallback<String> callback = new AsyncCallback<String>();
-        
-        System.out.println(">> Invoking async (callback) Dispatch with Message Mode");
+
+        TestLogger.logger.debug(">> Invoking async (callback) Dispatch with Message Mode");
         Future<?> monitor = dispatch.invokeAsync(DispatchTestConstants.sampleSoapMessage, callback);
     
         while (!monitor.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         
@@ -351,8 +352,8 @@
     }
     
     public void testAsyncPollingPayloadMode_badHostName() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         // Initialize the JAX-WS client artifacts
         Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
@@ -360,11 +361,11 @@
         Dispatch<String> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, 
                 String.class, Service.Mode.PAYLOAD);
 
-        System.out.println(">> Invoking async (polling) Dispatch");
+        TestLogger.logger.debug(">> Invoking async (polling) Dispatch");
         Response<String> asyncResponse = dispatch.invokeAsync(DispatchTestConstants.sampleBodyContent);
             
         while (!asyncResponse.isDone()) {
-            System.out.println(">> Async invocation still not complete");
+            TestLogger.logger.debug(">> Async invocation still not complete");
             Thread.sleep(1000);
         }
         

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/server/SOAP12Provider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/server/SOAP12Provider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/server/SOAP12Provider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/server/SOAP12Provider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.dispatch.server;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.xml.ws.Provider;
 import javax.xml.ws.WebServiceProvider;
 import javax.xml.ws.BindingType;
@@ -35,8 +37,8 @@
         "</test:echoStringResponse>";
     
     public String invoke(String obj) {
-        System.out.println(">> request received");
-        System.out.println(obj);
+        TestLogger.logger.debug(">> request received");
+        TestLogger.logger.debug(obj);
         return sampleResponse;
     }
 

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java Wed Apr 11 21:28:29 2007
@@ -86,6 +86,7 @@
 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.axis2.jaxws.TestLogger;
 import org.apache.log4j.BasicConfigurator;
 
 public class JAXWSTest extends TestCase {
@@ -188,12 +189,12 @@
         // Start (and stop) the server only once for all the tests
         TestSetup testSetup = new TestSetup(suite) {
             public void setUp() {
-                System.out.println("Starting the server.");
+                TestLogger.logger.debug("Starting the server.");
                 StartServer startServer = new StartServer("server1");
                 startServer.testStartServer();
             }
             public void tearDown() {
-                System.out.println("Stopping the server");
+                TestLogger.logger.debug("Stopping the server");
                 StopServer stopServer = new StopServer("server1");
                 stopServer.testStopServer();
             }

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl1.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl1.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl1.java Wed Apr 11 21:28:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.axis2.jaxws.injection;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.annotation.Resource;
@@ -36,14 +38,14 @@
 	@PostConstruct
 	public void initialize(){
 		//Called after resource injection and before a method is called.
-		System.out.println("Calling PostConstruct to Initialize");
+        TestLogger.logger.debug("Calling PostConstruct to Initialize");
 	}
 	
 	@PreDestroy
 	public void distructor(){
 		//Called before the scope of request or session or application ends.
-		
-		System.out.println("Calling PreDestroy ");
+
+        TestLogger.logger.debug("Calling PreDestroy ");
 		
 	}
 

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl2.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl2.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl2.java Wed Apr 11 21:28:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.axis2.jaxws.injection;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.annotation.Resource;
@@ -37,14 +39,14 @@
 	@PostConstruct
 	public void initialize(){
 		//Called after resource injection and before a method is called.
-		System.out.println("Calling PostConstruct to Initialize");
+        TestLogger.logger.debug("Calling PostConstruct to Initialize");
 	}
 	
 	@PreDestroy
 	public void distructor(){
 		//Called before the scope of request or session or application ends.
-		
-		System.out.println("Calling PreDestroy ");
+
+        TestLogger.logger.debug("Calling PreDestroy ");
 		
 	}
 	@Resource

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl3.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl3.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl3.java Wed Apr 11 21:28:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.axis2.jaxws.injection;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.annotation.Resource;
@@ -36,14 +38,14 @@
 	@PostConstruct
 	public void initialize(){
 		//Called after resource injection and before a method is called.
-		System.out.println("Calling PostConstruct to Initialize");
+        TestLogger.logger.debug("Calling PostConstruct to Initialize");
 	}
 	
 	@PreDestroy
 	public void distructor(){
 		//Called before the scope of request or session or application ends.
-		
-		System.out.println("Calling PreDestroy ");
+
+        TestLogger.logger.debug("Calling PreDestroy ");
 		
 	}
 	public WebServiceContext getCtx(){

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl4.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl4.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl4.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl4.java Wed Apr 11 21:28:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.axis2.jaxws.injection;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.annotation.Resource;
@@ -36,14 +38,14 @@
 	@PostConstruct
 	public void initialize(){
 		//Called after resource injection and before a method is called.
-		System.out.println("Calling PostConstruct to Initialize");
+        TestLogger.logger.debug("Calling PostConstruct to Initialize");
 	}
 	
 	@PreDestroy
 	public void distructor(){
 		//Called before the scope of request or session or application ends.
-		
-		System.out.println("Calling PreDestroy ");
+
+        TestLogger.logger.debug("Calling PreDestroy ");
 		
 	}
 	@Resource

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl5.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl5.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl5.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTestImpl5.java Wed Apr 11 21:28:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.axis2.jaxws.injection;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.annotation.Resource;
@@ -37,14 +39,14 @@
 	@PostConstruct
 	public void initialize(){
 		//Called after resource injection and before a method is called.
-		System.out.println("Calling PostConstruct to Initialize");
+        TestLogger.logger.debug("Calling PostConstruct to Initialize");
 	}
 	
 	@PreDestroy
 	public void distructor(){
 		//Called before the scope of request or session or application ends.
-		
-		System.out.println("Calling PreDestroy ");
+
+        TestLogger.logger.debug("Calling PreDestroy ");
 		
 	}
 

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/injection/ResourceInjectionTests.java Wed Apr 11 21:28:29 2007
@@ -26,6 +26,7 @@
 import org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionService;
 import org.apache.axis2.jaxws.server.endpoint.injection.ResourceInjector;
 import org.apache.axis2.jaxws.server.endpoint.injection.factory.ResourceInjectionFactory;
+import org.apache.axis2.jaxws.TestLogger;
 
 public class ResourceInjectionTests extends TestCase {
 
@@ -38,15 +39,15 @@
 
 	public void testInjectionOnField(){
 		Object serviceInstance = new ResourceInjectionTestImpl1();
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjector injector = ResourceInjectionFactory.createResourceInjector(WebServiceContext.class);
 			injector.inject(resource, serviceInstance);
 			ResourceInjectionTestImpl1 serviceImpl =(ResourceInjectionTestImpl1)serviceInstance;
 			assertNotNull(serviceImpl.ctx);
-			System.out.println("Resource Injected on Field");
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Resource Injected on Field");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();
@@ -55,15 +56,15 @@
 	
 	public void testInjectionOnMethod(){
 		Object serviceInstance = new ResourceInjectionTestImpl2();
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjector injector = ResourceInjectionFactory.createResourceInjector(WebServiceContext.class);
 			injector.inject(resource, serviceInstance);
 			ResourceInjectionTestImpl2 serviceImpl =(ResourceInjectionTestImpl2)serviceInstance;
 			assertNotNull(serviceImpl.ctx);
-			System.out.println("Resource Injected on Method");
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Resource Injected on Method");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();
@@ -72,15 +73,15 @@
 	
 	public void testInjectionOnPrivateField(){
 		Object serviceInstance = new ResourceInjectionTestImpl3();
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjector injector = ResourceInjectionFactory.createResourceInjector(WebServiceContext.class);
 			injector.inject(resource, serviceInstance);
 			ResourceInjectionTestImpl3 serviceImpl =(ResourceInjectionTestImpl3)serviceInstance;
 			assertNotNull(serviceImpl.getCtx());
-			System.out.println("Resource Injected on Private Field");
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Resource Injected on Private Field");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();
@@ -89,15 +90,15 @@
 	
 	public void testInjectionOnProvateMethod(){
 		Object serviceInstance = new ResourceInjectionTestImpl4();
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjector injector = ResourceInjectionFactory.createResourceInjector(WebServiceContext.class);
 			injector.inject(resource, serviceInstance);
 			ResourceInjectionTestImpl4 serviceImpl =(ResourceInjectionTestImpl4)serviceInstance;
 			assertNotNull(serviceImpl.getCtx());
-			System.out.println("Resource Injected using private Method");
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Resource Injected using private Method");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();
@@ -106,15 +107,15 @@
 	
 	public void testTypedResourceInjectionOnField(){
 		Object serviceInstance = new ResourceInjectionTestImpl5();
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjector injector = ResourceInjectionFactory.createResourceInjector(WebServiceContext.class);
 			injector.inject(resource, serviceInstance);
 			ResourceInjectionTestImpl5 serviceImpl =(ResourceInjectionTestImpl5)serviceInstance;
 			assertNotNull(serviceImpl.ctx);
-			System.out.println("Resource Injected on Field");
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Resource Injected on Field");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();
@@ -123,14 +124,14 @@
 
 	
     public void testEchoWithResourceInjectionAndLifecycleMethods(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			ResourceInjectionService service = new ResourceInjectionService();
 			ResourceInjectionPortType proxy = service.getResourceInjectionPort();
 			String response = proxy.echo("echo Request");
-			System.out.println("Response String = " +response);
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("Response String = " + response);
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			e.printStackTrace();
 			fail();

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/jaxb/wrapper/WrapperToolTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/jaxb/wrapper/WrapperToolTest.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/jaxb/wrapper/WrapperToolTest.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/jaxb/wrapper/WrapperToolTest.java Wed Apr 11 21:28:29 2007
@@ -25,6 +25,7 @@
 import org.apache.axis2.jaxws.wrapper.JAXBWrapperTool;
 import org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException;
 import org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl;
+import org.apache.axis2.jaxws.TestLogger;
 
 public class WrapperToolTest extends TestCase {
 	public void testWrapStockQuote(){
@@ -127,7 +128,6 @@
 			childNames.add(nav);
 			
 			Object[] jaxbObjects = wrapper.unWrap(price, childNames);
-			System.out.println();
 		}catch(JAXBWrapperException e){
 			e.printStackTrace();
 		}

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/lifecycle/EndpointLifecycleTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/lifecycle/EndpointLifecycleTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/lifecycle/EndpointLifecycleTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/lifecycle/EndpointLifecycleTests.java Wed Apr 11 21:28:29 2007
@@ -23,6 +23,7 @@
 import org.apache.axis2.jaxws.resourceinjection.ResourceInjectionPortTypeImpl;
 import org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManager;
 import org.apache.axis2.jaxws.server.endpoint.lifecycle.factory.EndpointLifecycleManagerFactory;
+import org.apache.axis2.jaxws.TestLogger;
 
 public class EndpointLifecycleTests extends TestCase {
 	Object endpointInstance = new ResourceInjectionPortTypeImpl();
@@ -41,60 +42,60 @@
 	}
 	
 	public void testPostConstruct(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
 			assertNotNull(elmf);
 			EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(endpointInstance);
 			assertNotNull(elmf);
 			elm.invokePostConstruct();
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			fail(e.getMessage());
 		}
 	}
 
 	public void testPreDestroy(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
 			assertNotNull(elmf);
 			EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(endpointInstance);
 			assertNotNull(elm);
 			elm.invokePreDestroy();
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			fail(e.getMessage());
 		}
 	}
 	
 	public void testBadPostConstruct(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
 			assertNotNull(elmf);
 			EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(badObject);
 			assertNotNull(elmf);
 			elm.invokePostConstruct();
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			fail(e.getMessage());
 		}
 	}
 
 	public void testBadPreDestroy(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try{
 			EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
 			assertNotNull(elmf);
 			EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(badObject);
 			assertNotNull(elm);
 			elm.invokePreDestroy();
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		}catch(Exception e){
 			fail(e.getMessage());
 		}

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/BlockTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/BlockTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/BlockTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/BlockTests.java Wed Apr 11 21:28:29 2007
@@ -52,6 +52,7 @@
 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.w3c.dom.Document;
 import org.w3c.dom.Node;
 import org.xml.sax.InputSource;
@@ -918,7 +919,7 @@
 	        // To check that the output is correct, get the String contents of the 
 	        // reader
 	        String newText = baos.toString();
-	        System.out.println(newText);
+            TestLogger.logger.debug(newText);
 	        assertTrue(block.isConsumed());
 		}catch(Exception e){
 			e.printStackTrace();
@@ -982,7 +983,7 @@
         DocumentBuilder domBuilder = domFactory.newDocumentBuilder();
         Document domTree = domBuilder.parse(bais);
         Node node = domTree.getDocumentElement();
-        System.out.println(node.toString());
+        TestLogger.logger.debug(node.toString());
         
         // Create a DOMSource object from the DOM tree
         DOMSource ds = new DOMSource(node);

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java Wed Apr 11 21:28:29 2007
@@ -34,6 +34,7 @@
 import org.apache.axis2.jaxws.message.factory.JAXBBlockFactory;
 import org.apache.axis2.jaxws.message.factory.MessageFactory;
 import org.apache.axis2.jaxws.registry.FactoryRegistry;
+import org.apache.axis2.jaxws.TestLogger;
 import org.test.stock1.ObjectFactory;
 import org.test.stock1.StockPrice;
 
@@ -156,7 +157,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains("m:op"));
         assertTrue(newText.contains("m:param"));
         assertTrue(newText.contains("100"));
@@ -237,7 +238,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains("m:op"));
         assertTrue(newText.contains("m:param"));
         assertTrue(newText.contains("100"));

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java Wed Apr 11 21:28:29 2007
@@ -37,6 +37,7 @@
 import org.apache.axis2.jaxws.message.factory.XMLStringBlockFactory;
 import org.apache.axis2.jaxws.message.util.SAAJConverter;
 import org.apache.axis2.jaxws.registry.FactoryRegistry;
+import org.apache.axis2.jaxws.TestLogger;
 import test.EchoStringResponse;
 import test.ObjectFactory;
 
@@ -186,7 +187,7 @@
         env.serializeAndConsume(baos, new OMOutputFormat());
         
 		String newText = baos.toString();
-		System.out.println(newText);
+        TestLogger.logger.debug(newText);
 		assertTrue(newText.contains(sampleText));
 		assertTrue(newText.contains("soap"));
 		assertTrue(newText.contains("Envelope"));
@@ -247,7 +248,7 @@
 		// To check that the output is correct, get the String contents of the 
 		// reader
         String newText = baos.toString();
-		System.out.println(newText);
+        TestLogger.logger.debug(newText);
 		assertTrue(newText.contains(sampleText));
 		assertTrue(newText.contains("soap"));
 		assertTrue(newText.contains("Envelope"));
@@ -312,7 +313,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));
         assertTrue(newText.contains("Body"));
@@ -376,7 +377,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains(sampleText));
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));
@@ -679,7 +680,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains(sampleJAXBText));
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));
@@ -751,7 +752,7 @@
         // To check that the output is correct, get the String contents of the 
         // reader
         String newText = baos.toString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains(sampleJAXBText));
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SOAP12Tests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SOAP12Tests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SOAP12Tests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SOAP12Tests.java Wed Apr 11 21:28:29 2007
@@ -30,6 +30,7 @@
 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;
 
 /**
  * This suite is used to test the creation of messages based on SOAP 1.2
@@ -95,7 +96,7 @@
         // reader
         Reader2Writer r2w = new Reader2Writer(om.getXMLStreamReader());
         String newText = r2w.getAsString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains(sampleText));
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));
@@ -140,7 +141,7 @@
         // reader
         Reader2Writer r2w = new Reader2Writer(om.getXMLStreamReaderWithoutCaching());
         String newText = r2w.getAsString();
-        System.out.println(newText);
+        TestLogger.logger.debug(newText);
         assertTrue(newText.contains(sampleText));
         assertTrue(newText.contains("soap"));
         assertTrue(newText.contains("Envelope"));

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/EchoMessageImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/EchoMessageImpl.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/EchoMessageImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/EchoMessageImpl.java Wed Apr 11 21:28:29 2007
@@ -6,6 +6,7 @@
 import javax.jws.WebService;
 
 import org.apache.axis2.jaxws.nonanonymous.complextype.sei.EchoMessagePortType;
+import org.apache.axis2.jaxws.TestLogger;
 
 @WebService(targetNamespace="http://testApp.jaxws",
             endpointInterface="org.apache.axis2.jaxws.nonanonymous.complextype.sei.EchoMessagePortType")
@@ -25,7 +26,7 @@
 	 */
 	public String echoMessage(String request) {
 		String response = null;
-		System.out.println("echoMessage received: " + request);
+        TestLogger.logger.debug("echoMessage received: " + request);
         response = request.replaceAll("Server", "Client");
         return response;
 

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/NonAnonymousComplexTypeTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/NonAnonymousComplexTypeTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/NonAnonymousComplexTypeTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/nonanonymous/complextype/NonAnonymousComplexTypeTests.java Wed Apr 11 21:28:29 2007
@@ -8,6 +8,7 @@
 import junit.framework.TestCase;
 import org.apache.axis2.jaxws.nonanonymous.complextype.sei.EchoMessagePortType;
 import org.apache.axis2.jaxws.nonanonymous.complextype.sei.EchoMessageService;
+import org.apache.axis2.jaxws.TestLogger;
 
 public class NonAnonymousComplexTypeTests extends TestCase {
 
@@ -27,14 +28,14 @@
 		// TODO Auto-generated constructor stub
 	}
 	public void testSimpleProxy() {
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		try {
 			String msg = "Hello Server";
 		    EchoMessagePortType myPort = (new EchoMessageService()).getEchoMessagePort();
 		    String response = myPort.echoMessage(msg);
-		    System.out.println(response);
-		    System.out.println("------------------------------");
+            TestLogger.logger.debug(response);
+            TestLogger.logger.debug("------------------------------");
 		} catch (WebServiceException webEx) {
 			webEx.printStackTrace();
 			fail();

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java Wed Apr 11 21:28:29 2007
@@ -3,6 +3,7 @@
 import javax.jws.WebService;
 
 import org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType;
+import org.apache.axis2.jaxws.TestLogger;
 import org.test.shape.Circle;
 import org.test.shape.Shape;
 import org.test.shape.Square;
@@ -14,12 +15,14 @@
 	public Shape draw(Shape request) {
 		if(request instanceof Circle){
 			Circle circle =(Circle) request;
-			System.out.println("Drawing Circle on x ="+request.getXAxis()+" y=" +request.getYAxis()+ " With Radius ="+circle.getRadius());
+            TestLogger.logger.debug("Drawing Circle on x =" + request.getXAxis() + " y=" +
+                    request.getYAxis() + " With Radius =" + circle.getRadius());
 			return request;
 		}
 		if(request instanceof Square){
 			Square square =(Square) request;
-			System.out.println("Drawing Square on x ="+request.getXAxis()+" y=" +request.getYAxis()+ " With Sides ="+square.getLength());
+            TestLogger.logger.debug("Drawing Square on x =" + request.getXAxis() + " y=" +
+                    request.getYAxis() + " With Sides =" + square.getLength());
 			return request;
 		}
 		return null;
@@ -28,7 +31,8 @@
 	public Shape draw3D(Shape request) {
 		if(request instanceof ThreeDSquare){
 			ThreeDSquare threeDsquare =(ThreeDSquare) request;
-			System.out.println("Drawing 3DSquare on x ="+request.getXAxis()+" y=" +request.getYAxis()+ " With Bredth ="+threeDsquare.getBredth());
+            TestLogger.logger.debug("Drawing 3DSquare on x =" + request.getXAxis() + " y=" +
+                    request.getYAxis() + " With Bredth =" + threeDsquare.getBredth());
 			return request;
 		}
 		return null;

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/tests/PolymorphicTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/tests/PolymorphicTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/tests/PolymorphicTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/polymorphic/shape/tests/PolymorphicTests.java Wed Apr 11 21:28:29 2007
@@ -19,6 +19,7 @@
 import org.apache.axis2.jaxws.util.WSDLWrapper;
 import org.apache.axis2.jaxws.wsdl.SchemaReaderException;
 import org.apache.axis2.jaxws.wsdl.impl.SchemaReaderImpl;
+import org.apache.axis2.jaxws.TestLogger;
 import org.test.shape.Shape;
 import org.test.shape.Square;
 import org.test.shape.threed.ThreeDSquare;
@@ -26,22 +27,22 @@
 public class PolymorphicTests extends TestCase {
 
 	public void testFormalAndActualTypeInDifferentPackages(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		PolymorphicShapeService service = new PolymorphicShapeService();
 		PolymorphicShapePortType port = service.getPolymorphicShapePort();
 		Shape shapeType;
-		
-		System.out.println("Sending Request to draw Square");
+
+        TestLogger.logger.debug("Sending Request to draw Square");
 		Square shape = new Square();
 		shape.setXAxis(1);
 		shape.setYAxis(1);
 		shape.setLength(10);
 		shapeType = port.draw(shape);
 		assertTrue(shapeType instanceof Square);
-		System.out.println("Square was drawn");
-		
-		System.out.println("Sending Request to draw 3D Square");
+        TestLogger.logger.debug("Square was drawn");
+
+        TestLogger.logger.debug("Sending Request to draw 3D Square");
 		ThreeDSquare threeDshape = new ThreeDSquare();
 		threeDshape.setXAxis(1);
 		threeDshape.setYAxis(1);
@@ -50,13 +51,13 @@
 		threeDshape.setBredth(10);
 		shapeType = port.draw3D(threeDshape);
 		assertTrue(shapeType instanceof ThreeDSquare);
-		System.out.println("3D Square was drawn");
-		System.out.println("-------------------------------");
+        TestLogger.logger.debug("3D Square was drawn");
+        TestLogger.logger.debug("-------------------------------");
 	}
 	
 	public void testInlineUseOfJAXBBinding(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		String schemaBindingPkgName = "org.test.echomessage";
 		String standardPkgName= "org.test.complextype.nonanonymous";
 		String wsdlLocation="test-resources/wsdl/JAXB_Customization_Sample.wsdl";
@@ -78,9 +79,9 @@
 			Iterator<String> iter = set.iterator();
 			while(iter.hasNext()){
 				String pkg = iter.next();
-				System.out.println("Package = " +pkg);
+                TestLogger.logger.debug("Package = " + pkg);
 			}
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		} catch (MalformedURLException e) {
 			e.printStackTrace();
 			fail();
@@ -106,8 +107,8 @@
 	}
 	
 	public void testSchemaReader(){
-		System.out.println("------------------------------");
-		System.out.println("Test : "+getName());
+        TestLogger.logger.debug("------------------------------");
+        TestLogger.logger.debug("Test : " + getName());
 		String wsdlLocation="test-resources/wsdl/shapes.wsdl";
 		URL url = null;
 		try{
@@ -126,9 +127,9 @@
 			assertNotNull(set);
 			Iterator<String> iter = set.iterator();
 			while(iter.hasNext()){
-				System.out.println("Package ="+iter.next());
+                TestLogger.logger.debug("Package =" + iter.next());
 			}
-			System.out.println("------------------------------");
+            TestLogger.logger.debug("------------------------------");
 		} catch (MalformedURLException e) {
 			e.printStackTrace();
 			fail();

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/JAXBProviderTests.java Wed Apr 11 21:28:29 2007
@@ -30,6 +30,7 @@
 import javax.xml.ws.Service;
 
 import org.apache.axiom.attachments.ByteArrayDataSource;
+import org.apache.axis2.jaxws.TestLogger;
 import org.test.mtom.ImageDepot;
 import org.test.mtom.ObjectFactory;
 import org.test.mtom.SendImage;
@@ -90,8 +91,8 @@
      * @throws Exception
      */
     public void testMTOMAttachmentString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         //Create a DataHandler with the String DataSource object
         DataHandler dataHandler = new DataHandler(stringDS);
@@ -112,12 +113,12 @@
         ObjectFactory factory = new ObjectFactory();
         SendImage request = factory.createSendImage();
         request.setInput(imageDepot);
-        
-        System.out.println(">> Invoking Dispatch<Object> JAXBProviderService");
+
+        TestLogger.logger.debug(">> Invoking Dispatch<Object> JAXBProviderService");
         
         SendImageResponse response = (SendImageResponse) dispatch.invoke(request);
-        
-        System.out.println(">> Response [" + response.toString() + "]");
+
+        TestLogger.logger.debug(">> Response [" + response.toString() + "]");
     }
     
     /**
@@ -125,8 +126,8 @@
      * @throws Exception
      */
     public void testMTOMAttachmentImage() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         //Create a DataHandler with the String DataSource object
         DataHandler dataHandler = new DataHandler(imageDS);
@@ -147,11 +148,11 @@
         ObjectFactory factory = new ObjectFactory();
         SendImage request = factory.createSendImage();
         request.setInput(imageDepot);
-        
-        System.out.println(">> Invoking Dispatch<Object> JAXBProviderService");
+
+        TestLogger.logger.debug(">> Invoking Dispatch<Object> JAXBProviderService");
         
         SendImageResponse response = (SendImageResponse) dispatch.invoke(request);
-        
-        System.out.println(">> Response [" + response.toString() + "]");
+
+        TestLogger.logger.debug(">> Response [" + response.toString() + "]");
     }
 }

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SoapMessageProviderTests.java Wed Apr 11 21:28:29 2007
@@ -38,6 +38,7 @@
 import javax.xml.ws.soap.SOAPFaultException;
 
 import org.apache.axis2.jaxws.provider.soapmsg.SoapMessageProvider;
+import org.apache.axis2.jaxws.TestLogger;
 
 /**
  * Tests Dispatch<SOAPMessage> client and a Provider<SOAPMessage> service.
@@ -113,7 +114,7 @@
             request.setContentDescription(SoapMessageProvider.XML_REQUEST);
             
             // Dispatch
-        	System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
         	SOAPMessage response = dispatch.invoke(request);
 
             // Check for valid content description
@@ -126,7 +127,7 @@
             assertTrue(countAttachments(response) == 0);
             
             // Print out the response
-        	System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
             response.writeTo(System.out);
         	
         }catch(Exception e){
@@ -155,7 +156,7 @@
             request.setContentDescription(SoapMessageProvider.XML_EMPTYBODY_REQUEST);
             
             // Dispatch
-            System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
             SOAPMessage response = dispatch.invoke(request);
             
             // Check assertions
@@ -166,7 +167,7 @@
             assertTrue(countAttachments(response) == 0);
             
             // Print out the response
-            System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
             response.writeTo(System.out);
             
         }catch(Exception e){
@@ -196,7 +197,7 @@
             
             try {
                 // Dispatch
-                System.out.println(">> Invoking SourceMessageProviderDispatch");
+                TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
                 SOAPMessage response = dispatch.invoke(request);
                 assertTrue("Expected failure", false);
             } catch (SOAPFaultException e) {
@@ -235,7 +236,7 @@
             
             try {
                 // Dispatch
-                System.out.println(">> Invoking SourceMessageProviderDispatch");
+                TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
                 SOAPMessage response = dispatch.invoke(request);
                 assertTrue("Expected failure", false);
             } catch (SOAPFaultException e) {
@@ -270,12 +271,12 @@
             AttachmentPart ap = request.createAttachmentPart(SoapMessageProvider.TEXT_XML_ATTACHMENT, "text/xml");
             ap.setContentId(SoapMessageProvider.ID);
             request.addAttachmentPart(ap);
-            
-            System.out.println("Request Message:");
+
+            TestLogger.logger.debug("Request Message:");
             request.writeTo(System.out);
             
             // Dispatch
-            System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
             SOAPMessage response = dispatch.invoke(request);
 
             // Check assertions and get the data element
@@ -292,7 +293,7 @@
             assertTrue(content.contains(SoapMessageProvider.TEXT_XML_ATTACHMENT));
             
             // Print out the response
-            System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
             response.writeTo(System.out);
             
         }catch(Exception e){
@@ -326,12 +327,12 @@
             AttachmentPart ap = request.createAttachmentPart(SoapMessageProvider.TEXT_XML_ATTACHMENT, "text/xml");
             ap.setContentId(SoapMessageProvider.ID);
             request.addAttachmentPart(ap);
-            
-            System.out.println("Request Message:");
+
+            TestLogger.logger.debug("Request Message:");
             request.writeTo(System.out);
             
             // Dispatch
-            System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
             SOAPMessage response = dispatch.invoke(request);
 
             // Check assertions and get the data element
@@ -348,7 +349,7 @@
             assertTrue(content.contains(SoapMessageProvider.TEXT_XML_ATTACHMENT));
             
             // Print out the response
-            System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
             response.writeTo(System.out);
             
         }catch(Exception e){
@@ -377,12 +378,12 @@
             AttachmentPart ap = request.createAttachmentPart(SoapMessageProvider.TEXT_XML_ATTACHMENT, "text/xml");
             ap.setContentId(SoapMessageProvider.ID);
             request.addAttachmentPart(ap);
-            
-            System.out.println("Request Message:");
+
+            TestLogger.logger.debug("Request Message:");
             request.writeTo(System.out);
             
             // Dispatch
-            System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
             SOAPMessage response = dispatch.invoke(request);
 
             // Check assertions and get the data element
@@ -400,7 +401,7 @@
             assert(attachmentPart.getContentId().equals(SoapMessageProvider.ID));
             
             // Print out the response
-            System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
             response.writeTo(System.out);
             
         }catch(Exception e){

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceMessageProviderTests.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.InputStream;
@@ -59,10 +61,10 @@
         	Service svc = Service.create(serviceName);
         	svc.addPort(portName,null, endpointUrl);
         	Dispatch<Source> dispatch = svc.createDispatch(portName, Source.class, null);
-        	System.out.println(">> Invoking SourceMessageProviderDispatch");
+            TestLogger.logger.debug(">> Invoking SourceMessageProviderDispatch");
         	Source response = dispatch.invoke(xmlStreamSource);
 
-        	System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
         	
         }catch(Exception e){
         	e.printStackTrace();

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.FileInputStream;
@@ -92,8 +94,8 @@
     }
     
     public void testNormal() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -106,8 +108,8 @@
     }
     
     public void testEmptyString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -124,8 +126,8 @@
     }
     
     public void testNullSource() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -138,8 +140,8 @@
     }
     
     public void testEmptySource() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -152,8 +154,8 @@
     }
     
     public void testNonNullString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -168,8 +170,8 @@
     }
     
     public void testCommentString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -183,8 +185,8 @@
     }
     
     public void testTwoElementsString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -199,8 +201,8 @@
     }
     
     public void testTwoElementsAndMixedContentString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -214,8 +216,8 @@
     }
     
     public void testException() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<Source> dispatch = getDispatch();
         
@@ -243,10 +245,10 @@
         	Service svc = Service.create(serviceName);
         	svc.addPort(portName,null, endpointUrl);
         	Dispatch<Source> dispatch = svc.createDispatch(portName, Source.class, null);
-        	System.out.println(">> Invoking Source Provider Dispatch");
+            TestLogger.logger.debug(">> Invoking Source Provider Dispatch");
         	Source response = dispatch.invoke(xmlStreamSource);
 
-        	System.out.println(">> Response [" + response.toString() + "]");
+            TestLogger.logger.debug(">> Response [" + response.toString() + "]");
         	
         }catch(Exception e){
         	e.printStackTrace();

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringMessageProviderTests.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.xml.namespace.QName;
 import javax.xml.ws.Dispatch;
 import javax.xml.ws.Service;
@@ -39,17 +41,17 @@
     }
     
     public void testProviderString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Service svc = Service.create(serviceName);
         svc.addPort(portName, null, endpointUrl);
         
         Dispatch<String> dispatch = svc
                 .createDispatch(portName, String.class, Service.Mode.PAYLOAD);
-        
-        System.out.println(">> Invoking Dispatch<String> StringMessageProviderService");
+
+        TestLogger.logger.debug(">> Invoking Dispatch<String> StringMessageProviderService");
         String retVal = dispatch.invoke(xmlString);
-        System.out.println(">> Response [" + retVal + "]");
+        TestLogger.logger.debug(">> Response [" + retVal + "]");
     }
 }

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringProviderTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringProviderTests.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringProviderTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/StringProviderTests.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.xml.namespace.QName;
 import javax.xml.soap.SOAPFault;
 import javax.xml.ws.BindingProvider;
@@ -57,8 +59,8 @@
         
     }
     public void testNormal() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -68,8 +70,8 @@
     }
     
     public void testEmptyString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -84,8 +86,8 @@
     }
     
     public void testNullString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -98,8 +100,8 @@
     }
     
     public void testNonNullString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -112,8 +114,8 @@
     }
     
     public void testCommentString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -125,8 +127,8 @@
     }
     
     public void testTwoElementsString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -139,8 +141,8 @@
     }
     
     public void testTwoElementsAndMixedContentString() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         
@@ -152,8 +154,8 @@
     }
     
     public void testException() throws Exception {
-        System.out.println("---------------------------------------");
-        System.out.println("test: " + getName());
+        TestLogger.logger.debug("---------------------------------------");
+        TestLogger.logger.debug("test: " + getName());
         
         Dispatch<String> dispatch = getDispatch();
         

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/jaxb/JAXBProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/jaxb/JAXBProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/jaxb/JAXBProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/jaxb/JAXBProvider.java Wed Apr 11 21:28:29 2007
@@ -30,6 +30,7 @@
 import org.test.mtom.ObjectFactory;
 import org.test.mtom.SendImage;
 import org.test.mtom.SendImageResponse;
+import org.apache.axis2.jaxws.TestLogger;
 
 /**
  * A JAXWS Source Provider implementation
@@ -44,7 +45,7 @@
      * @return
      */
     public Source invoke(Source obj) {
-        System.out.println(">> JAXB Provider Service: Request received.\n");
+        TestLogger.logger.debug(">> JAXB Provider Service: Request received.\n");
         SendImage siRequest = null;
         SendImageResponse siResponse = null;
         StreamSource streamSource = null;

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/soapmsg/SoapMessageProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/soapmsg/SoapMessageProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/soapmsg/SoapMessageProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/soapmsg/SoapMessageProvider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider.soapmsg;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.InputStream;
@@ -104,7 +106,7 @@
     
     
     public SOAPMessage invoke(SOAPMessage soapMessage) throws SOAPFaultException {
-    	System.out.println(">> SoapMessageProvider: Request received.");
+        TestLogger.logger.debug(">> SoapMessageProvider: Request received.");
     	
     	try{
     	    // Look at the incoming request message
@@ -136,19 +138,20 @@
                 throwWebServiceException();
             } else {
                 // We should not get here
-                System.out.println("Unknown Type of Message");
+                TestLogger.logger.debug("Unknown Type of Message");
                 assert(false);
             }
             
             // Write out the Message
-            System.out.println(">> Response being sent by Server:");
+            TestLogger.logger.debug(">> Response being sent by Server:");
             //response.writeTo(System.out);
             //System.out.println("\n");
             return response;
     	} catch (WebServiceException wse) {
     	    throw wse;
         } catch(Exception e){
-            System.out.println("***ERROR: In SoapMessageProvider.invoke: Caught exception " + e);
+            TestLogger.logger
+                    .debug("***ERROR: In SoapMessageProvider.invoke: Caught exception " + e);
     		e.printStackTrace();
     	}
     	return null;
@@ -175,7 +178,7 @@
         String text = discElement.getValue();
         assert(text != null);
         assert(text.length() > 0);
-        System.out.println("Request Message Type is:" + text);
+        TestLogger.logger.debug("Request Message Type is:" + text);
         
         return (SOAPElement) discElement;
     }
@@ -263,16 +266,16 @@
      */
     private SOAPMessage getXMLMTOMResponse(SOAPMessage request, SOAPElement dataElement) throws Exception {
         SOAPMessage response;
-        
-        System.out.println("Received MTOM Message");
+
+        TestLogger.logger.debug("Received MTOM Message");
         // Additional assertion checks
         assert(countAttachments(request) == 1);
         AttachmentPart requestAP = (AttachmentPart) request.getAttachments().next();
         StreamSource contentSS = (StreamSource) requestAP.getContent();
         String content = getAsString(contentSS);
         assert(content.contains(SoapMessageProvider.TEXT_XML_ATTACHMENT));
-        
-        System.out.println("The MTOM Request Message appears correct.");
+
+        TestLogger.logger.debug("The MTOM Request Message appears correct.");
         
         // Build the Response
         MessageFactory factory = MessageFactory.newInstance();
@@ -283,8 +286,8 @@
         AttachmentPart ap = response.createAttachmentPart(SoapMessageProvider.TEXT_XML_ATTACHMENT, "text/xml");
         ap.setContentId(ID);
         response.addAttachmentPart(ap);
-        
-        System.out.println("Returning the Response Message");
+
+        TestLogger.logger.debug("Returning the Response Message");
         return response;
     }
     

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider.source;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.io.StringWriter;
@@ -38,8 +40,8 @@
     
     // Same logic as StringProvider
     public Source invoke(Source source) {
-        
-    	System.out.println(">> SourceProvider: Request received.\n");
+
+        TestLogger.logger.debug(">> SourceProvider: Request received.\n");
     	if (source == null) {
     	    return source;
         }
@@ -59,7 +61,7 @@
             throw new WebServiceException(e);
         }
     	String text = writer.getBuffer().toString();
-    	System.out.println(">> Source Request on Server: \n"+ text);
+        TestLogger.logger.debug(">> Source Request on Server: \n" + text);
     	
     	if (text != null && text.contains("throwWebServiceException")) {
     	    throw new WebServiceException("provider");

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/sourcemsg/SourceMessageProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/sourcemsg/SourceMessageProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/sourcemsg/SourceMessageProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/sourcemsg/SourceMessageProvider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider.sourcemsg;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.io.StringWriter;
@@ -36,7 +38,7 @@
 public class SourceMessageProvider implements Provider<Source> {
     String responseAsString = new String("<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Header/><soapenv:Body><ns2:ReturnType xmlns:ns2=\"http://test\"><return_str>some response</return_str></ns2:ReturnType></soapenv:Body></soapenv:Envelope>");
     public Source invoke(Source source) {
-    	System.out.println(">> SourceMessageProvider: Request received.");
+        TestLogger.logger.debug(">> SourceMessageProvider: Request received.");
     	//System.out.println(">> Source toString: \n"+source.toString());
     	
     	try{
@@ -44,7 +46,8 @@
 	        Transformer t = TransformerFactory.newInstance().newTransformer();
 	        Result result = new StreamResult(writer);
 	        t.transform(source, result);
-	        System.out.println(">> Source Request on Server: \n"+writer.getBuffer().toString());
+            TestLogger.logger
+                    .debug(">> Source Request on Server: \n" + writer.getBuffer().toString());
 	        
 	    	byte[] bytes = responseAsString.getBytes();
 	        ByteArrayInputStream stream = new ByteArrayInputStream(bytes);

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/string/StringProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/string/StringProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/string/StringProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/string/StringProvider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider.string;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.xml.ws.Provider;
 import javax.xml.ws.WebServiceException;
 import javax.xml.ws.WebServiceProvider;
@@ -24,7 +26,7 @@
 public class StringProvider implements Provider<String> {
     
     public String invoke(String text) {
-        System.out.println("StringProvider invoke received the message [" + text + "]");
+        TestLogger.logger.debug("StringProvider invoke received the message [" + text + "]");
         if (text != null && text.contains("throwWebServiceException")) {
             throw new WebServiceException("provider");
         } else {

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/stringmsg/StringMessageProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/stringmsg/StringMessageProvider.java?view=diff&rev=527766&r1=527765&r2=527766
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/stringmsg/StringMessageProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/provider/stringmsg/StringMessageProvider.java Wed Apr 11 21:28:29 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.axis2.jaxws.provider.stringmsg;
 
+import org.apache.axis2.jaxws.TestLogger;
+
 import javax.xml.ws.Provider;
 import javax.xml.ws.Service;
 import javax.xml.ws.ServiceMode;
@@ -30,12 +32,12 @@
     public String invoke(String obj) {
         if (obj != null) {
             String str = (String) obj;
-            System.out.println(">> StringMessageProvider received a new request");
-            System.out.println(">> request [" + str + "]");
+            TestLogger.logger.debug(">> StringMessageProvider received a new request");
+            TestLogger.logger.debug(">> request [" + str + "]");
             
             return responseGood;
         }
-        System.out.println(">> ERROR:null request received");
+        TestLogger.logger.debug(">> ERROR:null request received");
         return responseBad;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message