Skip to content

Commit 4745ade

Browse files
committed
Getting rid of the unnecessary testPrintHelp method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/branches/cli-1.x@745753 13f79535-47bb-0310-9956-ffa450edef68
1 parent a3e7162 commit 4745ade

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public void testInfiniteLoop() {
4444
formatter.setWidth(20);
4545
formatter.printHelp("app", options); // used to hang & crash
4646
}
47-
48-
private void testPrintHelp(Options options) throws ParseException, IOException {
49-
new HelpFormatter().printHelp(this.getClass().getName(), options);
50-
}
5147

5248
public void testPrintHelpLongLines() throws ParseException, IOException {
5349
// Constants used for options
@@ -233,7 +229,7 @@ public void testPrintHelpLongLines() throws ParseException, IOException {
233229
"Converts the JDBC file in the first argument to an SMFD file specified in the second argument.");
234230
option.setArgs(2);
235231
commandLineOptions.addOption(option);
236-
this.testPrintHelp(commandLineOptions);
232+
new HelpFormatter().printHelp(this.getClass().getName(), options);
237233
}
238234

239235
}

0 commit comments

Comments
 (0)