Skip to content

Commit db94046

Browse files
committed
Use assertThrows()
1 parent e44b530 commit db94046

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public void testGetsDefaultIfOptional() throws Exception {
7272
public void testLackOfError() throws Exception {
7373
final String[] args = { "-k", "-a", "Caesar" };
7474
final MissingArgumentException e = assertThrows(MissingArgumentException.class, () -> parser.parse(options, args));
75-
parser.parse(options, args);
7675
assertEquals("k", e.getOption().getOpt(), "option missing an argument");
7776
}
7877

0 commit comments

Comments
 (0)