commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r982450 - /commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsCopyTestCase.java
Date Thu, 05 Aug 2010 01:09:46 GMT
Author: niallp
Date: Thu Aug  5 01:09:46 2010
New Revision: 982450

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

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

Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsCopyTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsCopyTestCase.java?rev=982450&r1=982449&r2=982450&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsCopyTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsCopyTestCase.java Thu Aug
 5 01:09:46 2010
@@ -145,7 +145,7 @@ public class IOUtilsCopyTestCase extends
     public void testCopy_inputStreamToWriter_nullIn() throws Exception {
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, true, true);
-        Writer writer = new OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new OutputStreamWriter(out, "US-ASCII");
         try {
             IOUtils.copy((InputStream) null, writer);
             fail();
@@ -182,7 +182,7 @@ public class IOUtilsCopyTestCase extends
     public void testCopy_inputStreamToWriter_Encoding_nullIn() throws Exception {
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, true, true);
-        Writer writer = new OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new OutputStreamWriter(out, "US-ASCII");
         try {
             IOUtils.copy((InputStream) null, writer, "UTF8");
             fail();
@@ -328,7 +328,7 @@ public class IOUtilsCopyTestCase extends
     public void testCopy_readerToWriter_nullIn() throws Exception {
         ByteArrayOutputStream baout = new ByteArrayOutputStream();
         OutputStream out = new YellOnFlushAndCloseOutputStream(baout, true, true);
-        Writer writer = new OutputStreamWriter(baout, "US-ASCII");
+        Writer writer = new OutputStreamWriter(out, "US-ASCII");
         try {
             IOUtils.copy((Reader) null, writer);
             fail();



Mime
View raw message