This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git
The following commit(s) were added to refs/heads/master by this push:
new db940468 Use assertThrows()
db940468 is described below
commit db940468d84c648797ed13b436d24119b2f55f7c
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 19 08:06:36 2024 -0400
Use assertThrows()
---
src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java
b/src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java
index 88d7cbd3..2bc34e43 100644
--- a/src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java
+++ b/src/test/java/org/apache/commons/cli/bug/BugCLI71Test.java
@@ -72,7 +72,6 @@ public class BugCLI71Test {
public void testLackOfError() throws Exception {
final String[] args = { "-k", "-a", "Caesar" };
final MissingArgumentException e =
assertThrows(MissingArgumentException.class, () -> parser.parse(options, args));
- parser.parse(options, args);
assertEquals("k", e.getOption().getOpt(), "option missing an
argument");
}