File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/cli/help Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,19 +164,19 @@ void testPrintHelpHeader() throws IOException {
164164 void testPrintHelpWithDefaults () throws IOException {
165165 final StringBuilder sb = new StringBuilder ();
166166 final TextHelpAppendable serializer = new TextHelpAppendable (sb );
167- HelpFormatter formatter = HelpFormatter .builder ().setHelpAppendable (serializer ).get ();
167+ final HelpFormatter formatter = HelpFormatter .builder ().setHelpAppendable (serializer ).get ();
168168
169169 final Options options = new Options ().addOption (Option .builder ("a" ).since ("1853" ).hasArg ().desc ("aaaa aaaa aaaa aaaa aaaa" ).get ());
170170
171- List <String > expected = new ArrayList <>();
171+ final List <String > expected = new ArrayList <>();
172172 expected .add (" usage: commandSyntax" );
173173 expected .add ("" );
174174 expected .add (" Options Since Description " );
175175 expected .add (" -a <arg> 1853 aaaa aaaa aaaa aaaa aaaa" );
176176 expected .add ("" );
177177
178178 formatter .printHelp ("commandSyntax" , options );
179- List <String > actual = IOUtils .readLines (new StringReader (sb .toString ()));
179+ final List <String > actual = IOUtils .readLines (new StringReader (sb .toString ()));
180180 assertEquals (expected , actual );
181181 }
182182
You can’t perform that action at this time.
0 commit comments