hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1444641 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java
Date Mon, 11 Feb 2013 00:37:44 GMT
Author: sebb
Date: Mon Feb 11 00:37:44 2013
New Revision: 1444641

URL: http://svn.apache.org/r1444641
Log:
Close resources at end of test

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java?rev=1444641&r1=1444640&r2=1444641&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentityOutputStream.java
Mon Feb 11 00:37:44 2013
@@ -39,7 +39,7 @@ public class TestIdentityOutputStream {
 
     @Test
     public void testConstructors() throws Exception {
-        new IdentityOutputStream(new SessionOutputBufferMock());
+        new IdentityOutputStream(new SessionOutputBufferMock()).close();
         try {
             new IdentityOutputStream(null);
             Assert.fail("IllegalArgumentException should have been thrown");
@@ -89,7 +89,7 @@ public class TestIdentityOutputStream {
     @Test
     public void testConstructor() throws Exception {
         final SessionOutputBufferMock transmitter = new SessionOutputBufferMock();
-        new IdentityOutputStream(transmitter);
+        new IdentityOutputStream(transmitter).close();
         try {
             new IdentityOutputStream(null);
             Assert.fail("IllegalArgumentException should have been thrown");
@@ -114,6 +114,7 @@ public class TestIdentityOutputStream {
         for (int i = 0; i < expected.length; i++) {
             Assert.assertEquals(expected[i], input[i]);
         }
+        outstream.close();
     }
 
     @Test



Mime
View raw message