This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git

commit 7f183752c45d974e1b59f5fef5e4bd78330e2f8a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 14 10:40:04 2024 -0400

    Add  SwappedDataInputStreamTest.testCloseHandleIOException()
---
 .../org/apache/commons/io/input/SwappedDataInputStreamTest.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java 
b/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java
index 7ff2fd483..37a656e5d 100644
--- a/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java
@@ -59,6 +59,12 @@ public class SwappedDataInputStreamTest {
         this.sdis = null;
     }
 
+    @SuppressWarnings({ "resource" })
+    @Test
+    public void testCloseHandleIOException() throws IOException {
+        ProxyInputStreamTest.testCloseHandleIOException(new 
SwappedDataInputStream(new BrokenInputStream((Throwable) new IOException())));
+    }
+
     @Test
     public void testReadBoolean() throws IOException {
         bytes = new byte[] { 0x00, 0x01, 0x02, };

Reply via email to