commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r745753 - /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java
Date Thu, 19 Feb 2009 06:34:17 GMT
Author: bayard
Date: Thu Feb 19 06:34:17 2009
New Revision: 745753

URL: http://svn.apache.org/viewvc?rev=745753&view=rev
Log:
Getting rid of the unnecessary testPrintHelp method

Modified:
    commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java

Modified: commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java?rev=745753&r1=745752&r2=745753&view=diff
==============================================================================
--- commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java
(original)
+++ commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/bug/BugCLI162Test.java
Thu Feb 19 06:34:17 2009
@@ -44,10 +44,6 @@
         formatter.setWidth(20);
         formatter.printHelp("app", options); // used to hang & crash
     }
-    
-    private void testPrintHelp(Options options) throws ParseException, IOException {
-        new HelpFormatter().printHelp(this.getClass().getName(), options);
-    }
 
     public void testPrintHelpLongLines() throws ParseException, IOException {
         // Constants used for options
@@ -233,7 +229,7 @@
                 "Converts the JDBC file in the first argument to an SMFD file specified in
the second argument.");
         option.setArgs(2);
         commandLineOptions.addOption(option);
-        this.testPrintHelp(commandLineOptions);
+        new HelpFormatter().printHelp(this.getClass().getName(), options);
     }
 
 }



Mime
View raw message