Skip to content

Commit 09b3f02

Browse files
committed
Use Assertions.assertInstanceOf()
1 parent 24e5af4 commit 09b3f02

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2020
import static org.junit.jupiter.api.Assertions.assertEquals;
21+
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
2122
import static org.junit.jupiter.api.Assertions.assertSame;
2223
import static org.junit.jupiter.api.Assertions.assertThrows;
2324
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -299,7 +300,7 @@ public void testToInputStreamEmpty(final String baosName, final BAOSFactory<?> b
299300
// Get data before more writes
300301
final InputStream in = baout.toInputStream()) {
301302
assertEquals(0, in.available());
302-
assertTrue(in instanceof ClosedInputStream);
303+
assertInstanceOf(ClosedInputStream.class, in);
303304
}
304305
}
305306

0 commit comments

Comments
 (0)