File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
1919
2020import static org .junit .jupiter .api .Assertions .assertEquals ;
2121import static org .junit .jupiter .api .Assertions .assertFalse ;
22+ import static org .junit .jupiter .api .Assertions .assertInstanceOf ;
2223import static org .junit .jupiter .api .Assertions .assertNotNull ;
2324import static org .junit .jupiter .api .Assertions .assertNull ;
2425import static org .junit .jupiter .api .Assertions .assertThrows ;
@@ -67,7 +68,7 @@ public void testExistingFilePattern() throws Exception {
6768 final Object parsedReadableFileStream = line .getOptionObject ("g" );
6869
6970 assertNotNull (parsedReadableFileStream , "option g not parsed" );
70- assertTrue ( parsedReadableFileStream instanceof FileInputStream , "option g not FileInputStream" );
71+ assertInstanceOf ( FileInputStream . class , parsedReadableFileStream , "option g not FileInputStream" );
7172 }
7273
7374 @ Test
You can’t perform that action at this time.
0 commit comments