You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/01/30 18:22:24 UTC
svn commit: r1440534 -
/commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java
Author: sebb
Date: Wed Jan 30 17:22:24 2013
New Revision: 1440534
URL: http://svn.apache.org/viewvc?rev=1440534&view=rev
Log:
Exceptions not thrown
Modified:
commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java
Modified: commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java?rev=1440534&r1=1440533&r2=1440534&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java (original)
+++ commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/bug/BugCLI162Test.java Wed Jan 30 17:22:24 2013
@@ -18,7 +18,6 @@
package org.apache.commons.cli.bug;
-import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.ParameterMetaData;
@@ -30,7 +29,6 @@ import org.apache.commons.cli.HelpFormat
import org.apache.commons.cli.Option;
import org.apache.commons.cli.OptionGroup;
import org.apache.commons.cli.Options;
-import org.apache.commons.cli.ParseException;
public class BugCLI162Test extends TestCase {
/** Constant for the line separator.*/
@@ -44,7 +42,7 @@ public class BugCLI162Test extends TestC
formatter.printHelp("app", options); // used to hang & crash
}
- public void testPrintHelpLongLines() throws ParseException, IOException {
+ public void testPrintHelpLongLines() {
// Constants used for options
final String OPT = "-";
@@ -231,7 +229,7 @@ public class BugCLI162Test extends TestC
new HelpFormatter().printHelp(this.getClass().getName(), commandLineOptions);
}
- public void testLongLineChunking() throws ParseException, IOException {
+ public void testLongLineChunking() {
Options options = new Options();
options.addOption("x", "extralongarg", false,
"This description has ReallyLongValuesThatAreLongerThanTheWidthOfTheColumns " +
@@ -263,7 +261,7 @@ public class BugCLI162Test extends TestC
assertEquals( "Long arguments did not split as expected", expected, sw.toString() );
}
- public void testLongLineChunkingIndentIgnored() throws ParseException, IOException {
+ public void testLongLineChunkingIndentIgnored() {
Options options = new Options();
options.addOption("x", "extralongarg", false, "This description is Long." );
HelpFormatter formatter = new HelpFormatter();