I am very new to Java, and testing a small piece of Java code:
I have a java program which work like a calculator and writes input/output to console in a tabular format-
Inputs:
+-+-----+
| |1 |
+-+-----+
|A|1 + 1|
+-+-----+
Results:
+-+-------+
| |1 |
+-+-------+
|A|2.00000|
+-+-------+
Can anyone help on how to write JUNIT ASSERT statement to validate that program is printed in the right format with right values?
I am doing black-box testing and does not have understanding on the code/class/method written within the code.