@@ -51,9 +51,9 @@ void shouldRecognizeAllCommands() {
5151 @ Test
5252 void shouldDetectAllCommandLineOptions () throws ParseException {
5353
54- String [][] argArrays = new String [][] {
55- new String [] { "-i" , "input/path" , "-o" , "output/path" },
56- new String [] { "-o" , "output/path" , "-i" , "input/path" , }
54+ String [][] argArrays = new String [][]{
55+ new String []{ "-i" , "input/path" , "-o" , "output/path" },
56+ new String []{ "-o" , "output/path" , "-i" , "input/path" , }
5757 };
5858 for (Command command : Command .WORK_COMMANDS )
5959 {
@@ -72,19 +72,20 @@ void shouldDetectAllCommandLineOptions() throws ParseException {
7272 @ Test
7373 void shouldThrowExceptionWhenMissingCommandArguments () {
7474
75- String [][] missingArgs = new String [][] {
75+ String [][] missingArgs = new String [][]{
7676// new String[] { "-i", "input/path" }, // missing output path
77- new String [] { "-o" , "output/path" } // missing input path
77+ new String []{ "-o" , "output/path" } // missing input path
7878 };
7979 for (String [] args : missingArgs ) {
8080 Arrays .stream (Command .WORK_COMMANDS ).forEach (c -> Assertions .assertThrows (ParseException .class ,
8181 () -> CommandLine .parse (c .options , ArrayUtils .addFirst (args , c .name ))));
8282 }
83- String [][] correctArgs = new String [][] {
84- new String [] { "-i" , "input/path" , "-o" , "output/path" },
85- new String [] { "-o" , "output/path" , "-i" , "input/path" , }
83+ String [][] correctArgs = new String [][]{
84+ new String []{ "-i" , "input/path" , "-o" , "output/path" },
85+ new String []{ "-o" , "output/path" , "-i" , "input/path" , }
8686 };
87- for (String [] args : correctArgs ) {
87+ for (String [] args : correctArgs )
88+ {
8889 Arrays .stream (Command .WORK_COMMANDS ).forEach (c -> Assertions .assertDoesNotThrow (() ->
8990 CommandLine .parse (c .options , ArrayUtils .addFirst (args , c .name ))));
9091 }
0 commit comments