Skip to content

Commit c1cbe9d

Browse files
authored
Update PatternOptionBuilderTest.java
1 parent 9039cbd commit c1cbe9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java

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

2020
import static org.junit.Assert.assertEquals;
2121
import static org.junit.Assert.assertFalse;
22+
import static org.junit.Assert.assertNotNull;
2223
import static org.junit.Assert.assertNull;
2324
import static org.junit.Assert.assertTrue;
2425
import static org.junit.Assert.fail;
@@ -164,7 +165,7 @@ public void testExistingFilePattern() throws Exception
164165
CommandLineParser parser = new PosixParser();
165166
CommandLine line = parser.parse(options, new String[] { "-f", "test.properties", "-g", "build.xml" });
166167

167-
assertNotNull((FileInputStream) line.getOptionObject("g"));
168+
assertNotNull("option g not parsed, or not FileInputStream", (FileInputStream) line.getOptionObject("g"));
168169

169170
try
170171
{

0 commit comments

Comments
 (0)