commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1648324 - /commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java
Date Mon, 29 Dec 2014 12:41:35 GMT
Author: sebb
Date: Mon Dec 29 12:41:35 2014
New Revision: 1648324

URL: http://svn.apache.org/r1648324
Log:
Ensure resources are closed

Modified:
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java

Modified: commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java?rev=1648324&r1=1648323&r2=1648324&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java
(original)
+++ commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java
Mon Dec 29 12:41:35 2014
@@ -90,6 +90,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("1bpp-image-mask-versus-8bpp-mask",
                 baos.toByteArray(), foreground, background);
+        bos.close();
     }
 
     @Test
@@ -128,6 +129,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("8bpp-image-8bpp-mask", baos.toByteArray(),
                 foreground, background);
+        bos.close();
     }
 
     @Test
@@ -187,6 +189,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("8bpp-image-8bpp-mask-vs-1bpp-mask",
                 baos.toByteArray(), foreground, background);
+        bos.close();
     }
 
     @Test
@@ -246,6 +249,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("8bpp-image-1bpp-mask-vs-8bpp-mask",
                 baos.toByteArray(), foreground, background);
+        bos.close();
     }
 
     @Test
@@ -272,6 +276,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("8bpp-image-no-mask", baos.toByteArray(),
                 foreground, background);
+        bos.close();
     }
 
     @Test
@@ -329,6 +334,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("32bpp-image-1bpp-mask", baos.toByteArray(),
                 foreground, background);
+        bos.close();
     }
 
     @Test
@@ -382,6 +388,7 @@ public class IcnsRoundTripTest extends I
             threw = true;
         }
         assertTrue("ICNS file with corrupt mask didn't fail to parse", threw);
+        bos.close();
     }
 
     @Test
@@ -413,6 +420,7 @@ public class IcnsRoundTripTest extends I
         bos.flush();
         writeAndReadImageData("32bpp-mask-missing", baos.toByteArray(),
                 foreground, background);
+        bos.close();
     }
 
     private void writeAndReadImageData(final String description, final byte[] rawData,



Mime
View raw message