You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/02/01 00:16:15 UTC

svn commit: r1441255 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java

Author: sebb
Date: Thu Jan 31 23:16:14 2013
New Revision: 1441255

URL: http://svn.apache.org/viewvc?rev=1441255&view=rev
Log:
Ensure stream is closed

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

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java?rev=1441255&r1=1441254&r2=1441255&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java Thu Jan 31 23:16:14 2013
@@ -95,7 +95,7 @@ public class TaggedOutputStreamTest exte
         }
     }
 
-    public void testOtherException() {
+    public void testOtherException() throws Exception {
         final IOException exception = new IOException("test exception");
         final OutputStream closed = new ClosedOutputStream();
         final TaggedOutputStream stream = new TaggedOutputStream(closed);
@@ -116,6 +116,7 @@ public class TaggedOutputStreamTest exte
         } catch (final IOException e) {
             fail("Unexpected exception thrown");
         }
+        stream.close();
     }
 
 }