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.setIn(fips);
|
||||||
System.setOut(out);
|
System.setOut(out);
|
||||||
|
|
||||||
//execute
|
|
||||||
SimpleMain.main(arguments);
|
SimpleMain.main(arguments);
|
||||||
|
|
||||||
//verify
|
|
||||||
String consoleOutput = byteArrayOutputStream.toString(Charset.defaultCharset());
|
String consoleOutput = byteArrayOutputStream.toString(Charset.defaultCharset());
|
||||||
assertTrue(consoleOutput.contains("Calculated sum: 10"));
|
assertTrue(consoleOutput.contains("Calculated sum: 10"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue