Author: nbelaevski
Date: 2007-05-02 09:06:45 -0400 (Wed, 02 May 2007)
New Revision: 149
Modified:
trunk/test/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/CacheContentTest.java
Log:
Build fixed, test updated
Modified:
trunk/test/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/CacheContentTest.java
===================================================================
---
trunk/test/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/CacheContentTest.java 2007-05-02
02:10:44 UTC (rev 148)
+++
trunk/test/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/CacheContentTest.java 2007-05-02
13:06:45 UTC (rev 149)
@@ -28,7 +28,6 @@
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
-import java.io.StringWriter;
import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
import org.apache.shale.test.mock.MockPrintWriter;
@@ -70,8 +69,7 @@
*/
public void testGetOutputStream() throws IOException {
CacheContent content = new CacheContent();
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- OutputStream outputStream = content.getOutputStream(out);
+ OutputStream outputStream = content.getOutputStream();
byte[] bytes = "Test".getBytes();
outputStream.write(bytes);
outputStream.flush();
@@ -100,8 +98,7 @@
*/
public void testGetWriter() throws IOException {
CacheContent content = new CacheContent();
- StringWriter out = new StringWriter();
- PrintWriter outputStream = content.getWriter(out);
+ PrintWriter outputStream = content.getWriter();
outputStream.write("Test");
outputStream.flush();
outputStream.close();
Show replies by date