commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441255 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java
Date Thu, 31 Jan 2013 23:16:15 GMT
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();
     }
 
 }



Mime
View raw message