File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/test/java/de/voomdoon/util/cli Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88import org .junit .jupiter .api .Nested ;
99import org .junit .jupiter .api .Test ;
1010
11+ import de .voomdoon .testing .system .SystemPrintStreamCapturer ;
1112import de .voomdoon .testing .tests .TestBase ;
1213import de .voomdoon .util .cli .MainBaseTest .TestMainBases .TestMain ;
1314import de .voomdoon .util .cli .MainBaseTest .TestMainBases .TestMainWithTwoSubPrograms ;
1415import de .voomdoon .util .cli .MainBaseTest .TestPrograms .InvalidTestProgramWithoutMainMethod ;
1516import de .voomdoon .util .cli .MainBaseTest .TestPrograms .ValidTestProgram ;
1617import de .voomdoon .util .cli .ProgramTest .HelpTestBase ;
17- import de .voomdoon .util .commons .SystemOutput ;
1818
1919/**
2020 * Tests for {@link MainBase}.
@@ -238,9 +238,9 @@ void test_noArgs_printsHelp() throws Exception {
238238 MainBase main = new TestMain ();
239239 main .init (new String [0 ]);
240240
241- SystemOutput output = SystemOutput .run (() -> main .runProgram ());
241+ SystemPrintStreamCapturer output = SystemPrintStreamCapturer .run (() -> main .runProgram ());
242242
243- assertThat (output ).extracting (SystemOutput ::getOut ).asString ().contains ("My-Main" );
243+ assertThat (output ).extracting (SystemPrintStreamCapturer ::getOut ).asString ().contains ("My-Main" );
244244 }
245245
246246 /**
Original file line number Diff line number Diff line change 1212import org .junit .jupiter .api .Test ;
1313
1414import de .voomdoon .testing .logging .tests .LoggingCheckingTestBase ;
15+ import de .voomdoon .testing .system .SystemPrintStreamCapturer ;
1516import de .voomdoon .testing .tests .TestBase ;
1617import de .voomdoon .util .cli .args .Arguments ;
1718import de .voomdoon .util .cli .args .exception .argument .MissingCliArgumentException ;
1819import de .voomdoon .util .cli .args .exception .option .CliOptionException ;
1920import de .voomdoon .util .cli .test .NoOpTestProgram ;
2021import de .voomdoon .util .cli .test .TestProgramWithOptionWithLongNameAndValue ;
21- import de .voomdoon .util .commons .SystemOutput ;
2222
2323/**
2424 * Tests for {@link Program}.
@@ -174,11 +174,11 @@ AbstractStringAssert<?> initRunAndAssert(Class<? extends Program> clazz) throws
174174 throw new RuntimeException ("Error at 'initRunAndAssert': " + e .getMessage (), e );
175175 }
176176
177- SystemOutput output = SystemOutput .run (() -> program .runProgram ());
177+ SystemPrintStreamCapturer output = SystemPrintStreamCapturer .run (() -> program .runProgram ());
178178
179179 output .log (logger );
180180
181- return assertThat (output ).extracting (SystemOutput ::getOut ).asString ();
181+ return assertThat (output ).extracting (SystemPrintStreamCapturer ::getOut ).asString ();
182182 }
183183 }
184184
You can’t perform that action at this time.
0 commit comments