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 ab486806edbf01059c156747e751a0e8e380e943
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 14 10:40:58 2024 -0400

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

diff --git 
a/src/test/java/org/apache/commons/io/input/TaggedInputStreamTest.java 
b/src/test/java/org/apache/commons/io/input/TaggedInputStreamTest.java
index a61c0fc8e..560d36210 100644
--- a/src/test/java/org/apache/commons/io/input/TaggedInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/TaggedInputStreamTest.java
@@ -59,6 +59,12 @@ public class TaggedInputStreamTest  {
         assertEquals(exception, exceptionCloseCause);
     }
 
+    @SuppressWarnings({ "resource" })
+    @Test
+    public void testCloseHandleIOException() throws IOException {
+        ProxyInputStreamTest.testCloseHandleIOException(new 
TaggedInputStream(new BrokenInputStream((Throwable) new IOException())));
+    }
+
     @Test
     public void testEmptyStream() throws IOException {
         try (InputStream stream = new 
TaggedInputStream(ClosedInputStream.INSTANCE)) {

Reply via email to