We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 427d698 commit de0e418Copy full SHA for de0e418
1 file changed
src/test/java/org/apache/commons/cli/OptionTest.java
@@ -123,7 +123,7 @@ public void testBuilderInsufficientParams2() {
123
124
@Test
125
public void testBuilderInvalidOptionName0() {
126
- assertNull(Option.builder().option(null));
+ assertThrows(IllegalArgumentException.class, () -> Option.builder().option(null).build());
127
assertThrows(IllegalArgumentException.class, () -> Option.builder().option(""));
128
assertThrows(IllegalArgumentException.class, () -> Option.builder().option(" "));
129
}
0 commit comments