BAEL-6812 Test Main Method with JUnit
- fixed missed review comments
This commit is contained in:
parent
2f639b9aab
commit
c9ad63f05d
@ -82,10 +82,8 @@ public class TestSimpleMain {
|
||||
System.setIn(fips);
|
||||
System.setOut(out);
|
||||
|
||||
//execute
|
||||
SimpleMain.main(arguments);
|
||||
|
||||
//verify
|
||||
String consoleOutput = byteArrayOutputStream.toString(Charset.defaultCharset());
|
||||
assertTrue(consoleOutput.contains("Calculated sum: 10"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user