Skip to content

Commit e3d65b0

Browse files
authored
Update PatternOptionBuilderTest.java
-.-' sry
1 parent c1cbe9d commit e3d65b0

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,7 @@ public void testExistingFilePattern() throws Exception
166166
CommandLine line = parser.parse(options, new String[] { "-f", "test.properties", "-g", "build.xml" });
167167

168168
assertNotNull("option g not parsed, or not FileInputStream", (FileInputStream) line.getOptionObject("g"));
169-
170-
try
171-
{
172-
line.getOptionObject("f");
173-
fail("ParseException wasn't thrown");
174-
}
175-
catch (ParseException e)
176-
{
177-
}
169+
assertNull("option f parsed", (FileInputStream) line.getOptionObject("f"));
178170
}
179171

180172
@Test

0 commit comments

Comments
 (0)