Author: darran.lofthouse(a)jboss.com
Date: 2006-12-04 08:30:05 -0500 (Mon, 04 Dec 2006)
New Revision: 1544
Modified:
branches/dlofthouse/JBWS-1093/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/ServletTest.java
Log:
JBWS-1093 - Convert test to use PrintWriter instead of ServletOutputStream
Modified:
branches/dlofthouse/JBWS-1093/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/ServletTest.java
===================================================================
---
branches/dlofthouse/JBWS-1093/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/ServletTest.java 2006-12-04
13:13:42 UTC (rev 1543)
+++
branches/dlofthouse/JBWS-1093/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/ServletTest.java 2006-12-04
13:30:05 UTC (rev 1544)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxrpc.jbws1093;
import java.io.IOException;
+import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
@@ -45,8 +46,8 @@
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
{
- ServletOutputStream sos = response.getOutputStream();
- sos.println(MESSAGE);
+ PrintWriter writer = response.getWriter();
+ writer.println(MESSAGE);
}
}