commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-235) Bugs in CopyUtilsTest test cases?
Date Wed, 04 Aug 2010 23:02:16 GMT

     [ https://issues.apache.org/jira/browse/IO-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated IO-235:
-------------------------------

    Summary: Bugs in CopyUtilsTest test cases?  (was: Bugs in test cases?)

> Bugs in CopyUtilsTest test cases?
> ---------------------------------
>
>                 Key: IO-235
>                 URL: https://issues.apache.org/jira/browse/IO-235
>             Project: Commons IO
>          Issue Type: Bug
>            Reporter: Sebb
>
> testCopy_byteArrayToWriter() has the following code:
> {code}
> ByteArrayOutputStream baout = new ByteArrayOutputStream();
> OutputStream out = new YellOnFlushAndCloseOutputStream(baout, false, true); // out is
not used
> Writer writer = new java.io.OutputStreamWriter(baout, "US-ASCII"); // uses baout - should
it use out instead
> {code}
> It looks like the Writer should be created from out rather than baout - otherwise why
create out?
> Similarly for
> testCopy_inputStreamToWriter()
> testCopy_readerToWriter()
> testCopy_stringToWriter()
> The tests still pass if the Writer is changed to use out.
> Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message