geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r438275 - /geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
Date Tue, 29 Aug 2006 22:56:12 GMT
Author: jdillon
Date: Tue Aug 29 15:56:12 2006
New Revision: 438275

URL: http://svn.apache.org/viewvc?rev=438275&view=rev
Log:
Output to a ByteArrayOutputStream instead of System.out

Modified:
    geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java

Modified: geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java?rev=438275&r1=438274&r2=438275&view=diff
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis/src/test/java/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
Tue Aug 29 15:56:12 2006
@@ -17,10 +17,14 @@
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.ByteArrayOutputStream;
+
 import java.net.URI;
+
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis.constants.Style;
@@ -32,6 +36,7 @@
 import org.apache.axis.encoding.TypeMappingRegistryImpl;
 import org.apache.axis.handlers.soap.SOAPService;
 import org.apache.axis.providers.java.RPCProvider;
+
 import org.apache.geronimo.axis.server.AxisWebServiceContainer;
 import org.apache.geronimo.axis.server.POJOProvider;
 import org.apache.geronimo.axis.server.ReadOnlyServiceDesc;
@@ -110,12 +115,11 @@
                     new HashMap(),
                     location,
                     new HashMap());
-            AxisResponse res =
-                new AxisResponse("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080,
System.out);
-        
+            
+            ByteArrayOutputStream out = new ByteArrayOutputStream();
+            AxisResponse res = new AxisResponse("text/xml; charset=utf-8", "127.0.0.1", null,
null, 8080, out);
             req.setAttribute(WebServiceContainer.POJO_INSTANCE, pojoClass.newInstance());
             container.invoke(req, res);
-            System.out.flush();
         } finally {
             if (in != null) {
                 try {



Mime
View raw message