1818
1919package org .apache .commons .cli .bug ;
2020
21- import java .io .IOException ;
2221import java .io .PrintWriter ;
2322import java .io .StringWriter ;
2423import java .sql .ParameterMetaData ;
3029import org .apache .commons .cli .Option ;
3130import org .apache .commons .cli .OptionGroup ;
3231import org .apache .commons .cli .Options ;
33- import org .apache .commons .cli .ParseException ;
3432
3533public class BugCLI162Test extends TestCase {
3634 /** Constant for the line separator.*/
@@ -44,7 +42,7 @@ public void testInfiniteLoop() {
4442 formatter .printHelp ("app" , options ); // used to hang & crash
4543 }
4644
47- public void testPrintHelpLongLines () throws ParseException , IOException {
45+ public void testPrintHelpLongLines () {
4846 // Constants used for options
4947 final String OPT = "-" ;
5048
@@ -231,7 +229,7 @@ public void testPrintHelpLongLines() throws ParseException, IOException {
231229 new HelpFormatter ().printHelp (this .getClass ().getName (), commandLineOptions );
232230 }
233231
234- public void testLongLineChunking () throws ParseException , IOException {
232+ public void testLongLineChunking () {
235233 Options options = new Options ();
236234 options .addOption ("x" , "extralongarg" , false ,
237235 "This description has ReallyLongValuesThatAreLongerThanTheWidthOfTheColumns " +
@@ -263,7 +261,7 @@ public void testLongLineChunking() throws ParseException, IOException {
263261 assertEquals ( "Long arguments did not split as expected" , expected , sw .toString () );
264262 }
265263
266- public void testLongLineChunkingIndentIgnored () throws ParseException , IOException {
264+ public void testLongLineChunkingIndentIgnored () {
267265 Options options = new Options ();
268266 options .addOption ("x" , "extralongarg" , false , "This description is Long." );
269267 HelpFormatter formatter = new HelpFormatter ();
0 commit comments