Skip to content

Commit f06a1b9

Browse files
committed
Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1440534 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0cbe335 commit f06a1b9

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
package org.apache.commons.cli.bug;
2020

21-
import java.io.IOException;
2221
import java.io.PrintWriter;
2322
import java.io.StringWriter;
2423
import java.sql.ParameterMetaData;
@@ -30,7 +29,6 @@
3029
import org.apache.commons.cli.Option;
3130
import org.apache.commons.cli.OptionGroup;
3231
import org.apache.commons.cli.Options;
33-
import org.apache.commons.cli.ParseException;
3432

3533
public 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

Comments
 (0)