commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r982430 - /commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java
Date Wed, 04 Aug 2010 22:59:44 GMT
Author: niallp
Date: Wed Aug  4 22:59:44 2010
New Revision: 982430

URL: http://svn.apache.org/viewvc?rev=982430&view=rev
Log:
IO-235 Fix Test case - unused YellOnFlushAndCloseOutputStream

Modified:
    commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java

Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java?rev=982430&r1=982429&r2=982430&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/CopyUtilsTest.java Wed Aug  4 22:59:44
2010
@@ -86,7 +86,7 @@ public class CopyUtilsTest extends FileB
     public void testCopy_byteArrayToWriter() throws Exception {
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, false, true);
-        Writer writer = new java.io.OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new java.io.OutputStreamWriter(out, "US-ASCII");
         
         CopyUtils.copy(inData, writer);
         writer.flush();
@@ -116,7 +116,7 @@ public class CopyUtilsTest extends FileB
 
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, false, true);
-        Writer writer = new java.io.OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new java.io.OutputStreamWriter(out, "US-ASCII");
         
         CopyUtils.copy(in, writer);
         writer.flush();
@@ -153,7 +153,7 @@ public class CopyUtilsTest extends FileB
 
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, false, true);
-        Writer writer = new java.io.OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new java.io.OutputStreamWriter(out, "US-ASCII");
 
         int count = CopyUtils.copy(reader, writer);
         writer.flush();
@@ -188,7 +188,7 @@ public class CopyUtilsTest extends FileB
 
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, false, true);
-        Writer writer = new java.io.OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new java.io.OutputStreamWriter(out, "US-ASCII");
 
         CopyUtils.copy(str, writer);
         writer.flush();



Mime
View raw message