File tree 2 files changed +3
-3
lines changed
src/test/java/com/beust/jcommander
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class TwoCommand {
50
50
.addCommand (new TwoCommand ())
51
51
.build ();
52
52
StringBuilder output = new StringBuilder ();
53
- jc .setConsole (new OutputForwardingConsole (output ));
53
+ jc .setConsole (new StringBuilderConsole (output ));
54
54
jc .usage ();
55
55
String expected = "Usage: <main class> [options] [command] [command options]\n "
56
56
+ "\n "
Original file line number Diff line number Diff line change 2
2
3
3
import com .beust .jcommander .internal .Console ;
4
4
5
- public class OutputForwardingConsole implements Console {
5
+ public class StringBuilderConsole implements Console {
6
6
7
7
public final StringBuilder output ;
8
8
9
- public OutputForwardingConsole (StringBuilder output ) {
9
+ public StringBuilderConsole (StringBuilder output ) {
10
10
this .output = output ;
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments