Skip to content

Commit ab48680

Browse files
committed
Add TaggedInputStreamTest.testCloseHandleIOException()
1 parent 7f18375 commit ab48680

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/input/TaggedInputStreamTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public void testBrokenStream() {
5959
assertEquals(exception, exceptionCloseCause);
6060
}
6161

62+
@SuppressWarnings({ "resource" })
63+
@Test
64+
public void testCloseHandleIOException() throws IOException {
65+
ProxyInputStreamTest.testCloseHandleIOException(new TaggedInputStream(new BrokenInputStream((Throwable) new IOException())));
66+
}
67+
6268
@Test
6369
public void testEmptyStream() throws IOException {
6470
try (InputStream stream = new TaggedInputStream(ClosedInputStream.INSTANCE)) {

0 commit comments

Comments
 (0)