1717
1818package org .apache .commons .cli ;
1919
20+ import static org .junit .Assert .assertEquals ;
21+ import static org .junit .Assert .assertNotNull ;
22+ import static org .junit .Assert .assertTrue ;
23+ import static org .junit .Assert .fail ;
24+
2025import java .io .ByteArrayOutputStream ;
2126import java .io .PrintStream ;
2227import java .util .Iterator ;
2328import java .util .Properties ;
2429
25- import junit .framework . TestCase ;
30+ import org . junit .Test ;
2631
2732@ SuppressWarnings ("deprecation" ) // tests some deprecated classes
28- public class BugsTest extends TestCase
33+ public class BugsTest
2934{
35+ @ Test
3036 public void test11457 () throws Exception
3137 {
3238 Options options = new Options ();
@@ -39,6 +45,7 @@ public void test11457() throws Exception
3945 assertTrue (cmd .hasOption ("verbose" ));
4046 }
4147
48+ @ Test
4249 public void test11458 () throws Exception
4350 {
4451 Options options = new Options ();
@@ -82,6 +89,7 @@ public void test11458() throws Exception
8289 }
8390 }
8491
92+ @ Test
8593 public void test11680 () throws Exception
8694 {
8795 Options options = new Options ();
@@ -97,6 +105,7 @@ public void test11680() throws Exception
97105 cmd .getOptionValue ("m" , "default m" );
98106 }
99107
108+ @ Test
100109 public void test11456 () throws Exception
101110 {
102111 // Posix
@@ -122,6 +131,7 @@ public void test11456() throws Exception
122131 assertEquals ( cmd .getOptionValue ( 'b' ), "value" );
123132 }
124133
134+ @ Test
125135 public void test12210 () throws Exception
126136 {
127137 // create the main options object which will handle the first parameter
@@ -178,6 +188,7 @@ else if(cmd.hasOption("rep"))
178188 }
179189 }
180190
191+ @ Test
181192 public void test13425 () throws Exception
182193 {
183194 Options options = new Options ();
@@ -208,6 +219,7 @@ public void test13425() throws Exception
208219 }
209220 }
210221
222+ @ Test
211223 public void test13666 () throws Exception
212224 {
213225 Options options = new Options ();
@@ -238,6 +250,7 @@ public void test13666() throws Exception
238250 }
239251 }
240252
253+ @ Test
241254 public void test13935 () throws Exception
242255 {
243256 OptionGroup directions = new OptionGroup ();
@@ -284,6 +297,7 @@ public void test13935() throws Exception
284297 assertNotNull (line );
285298 }
286299
300+ @ Test
287301 public void test14786 () throws Exception
288302 {
289303 Option o = OptionBuilder .isRequired ().withDescription ("test" ).create ("test" );
@@ -299,6 +313,7 @@ public void test14786() throws Exception
299313 assertTrue ( line .hasOption ( "test" ) );
300314 }
301315
316+ @ Test
302317 public void test15046 () throws Exception
303318 {
304319 CommandLineParser parser = new PosixParser ();
@@ -316,6 +331,7 @@ public void test15046() throws Exception
316331 assertTrue ( !line .hasOption ("c" ) );
317332 }
318333
334+ @ Test
319335 public void test15648 () throws Exception
320336 {
321337 CommandLineParser parser = new PosixParser ();
@@ -327,6 +343,7 @@ public void test15648() throws Exception
327343 assertEquals ( "Two Words" , line .getOptionValue ( "m" ) );
328344 }
329345
346+ @ Test
330347 public void test31148 () throws ParseException
331348 {
332349 Option multiArgOption = new Option ("o" ,"option with multiple args" );
0 commit comments