File tree Expand file tree Collapse file tree
picocli-codegen-tests-java9plus/src/test/java/picocli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class Issue1380Test {
5656 public void testingWithExclusiveTrue () {
5757 ByteArrayOutputStream tempOut = new ByteArrayOutputStream ();
5858 PrintStream printStream = new PrintStream (tempOut );
59- new CommandLine (new TestingClassExclusiveTrue ()).usage (printStream );
59+ new CommandLine (new TestingClassExclusiveTrue ()).usage (printStream , CommandLine . Help . Ansi . OFF );
6060
6161 String returnedText = tempOut .toString ();
6262 String expectedText = String .format (
@@ -75,7 +75,7 @@ public void testingWithExclusiveTrue() {
7575 public void testingWithExclusiveFalse () {
7676 ByteArrayOutputStream tempOut = new ByteArrayOutputStream ();
7777 PrintStream printStream = new PrintStream (tempOut );
78- new CommandLine (new TestingClassExclusiveFalse ()).usage (printStream );
78+ new CommandLine (new TestingClassExclusiveFalse ()).usage (printStream , CommandLine . Help . Ansi . OFF );
7979
8080 String returnedText = tempOut .toString ();
8181 String expectedText = String .format (
Original file line number Diff line number Diff line change 77
88import org .junit .Rule ;
99import org .junit .Test ;
10+ import org .junit .contrib .java .lang .system .ProvideSystemProperty ;
1011import org .junit .contrib .java .lang .system .SystemErrRule ;
1112import picocli .CommandLine .Command ;
1213import picocli .CommandLine .Help .Ansi ;
@@ -22,6 +23,8 @@ public class Issue1125_1538_OptionNameOrSubcommandAsOptionValue {
2223
2324 @ Rule
2425 public SystemErrRule systemErrRule = new SystemErrRule ().enableLog ().muteForSuccessfulTests ();
26+ @ Rule
27+ public final ProvideSystemProperty ansiOFF = new ProvideSystemProperty ("picocli.ansi" , "false" );
2528
2629 @ Command (name = "mycommand" )
2730 static class MyCommand implements Callable <Integer > {
You can’t perform that action at this time.
0 commit comments