You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/03/26 14:46:34 UTC
(commons-cli) branch master updated: Use longer lines
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 4abbac5 Use longer lines
4abbac5 is described below
commit 4abbac5a436628cea1f854c6b1400859b4dc572f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Mar 26 10:46:29 2024 -0400
Use longer lines
---
src/test/java/org/apache/commons/cli/OptionTest.java | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/test/java/org/apache/commons/cli/OptionTest.java b/src/test/java/org/apache/commons/cli/OptionTest.java
index bf56cd9..66622ac 100644
--- a/src/test/java/org/apache/commons/cli/OptionTest.java
+++ b/src/test/java/org/apache/commons/cli/OptionTest.java
@@ -90,38 +90,32 @@ public class OptionTest {
@Test
public void testBuilderInsufficientParams1() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder().desc("desc").build());
+ assertThrows(IllegalArgumentException.class, () -> Option.builder().desc("desc").build());
}
@Test
public void testBuilderInsufficientParams2() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder(null).desc("desc").build());
+ assertThrows(IllegalArgumentException.class, () -> Option.builder(null).desc("desc").build());
}
@Test
public void testBuilderInvalidOptionName1() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder().option("invalid?"));
+ assertThrows(IllegalArgumentException.class, () -> Option.builder().option("invalid?"));
}
@Test
public void testBuilderInvalidOptionName2() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder().option("invalid@"));
+ assertThrows(IllegalArgumentException.class, () -> Option.builder().option("invalid@"));
}
@Test
public void testBuilderInvalidOptionName3() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder("invalid?"));
+ assertThrows(IllegalArgumentException.class, () -> Option.builder("invalid?"));
}
@Test
public void testBuilderInvalidOptionName4() {
- assertThrows(IllegalArgumentException.class, () ->
- Option.builder("invalid@"));
+ assertThrows(IllegalArgumentException.class, () -> Option.builder("invalid@"));
}
@Test