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();