import static org.junit.Assert.*; import org.junit.Test; /*--- ADAPTED from example at: https://github.com/junit-team/junit4/wiki/Getting-started adapted by: Sharon Tuttle last modified: 2021-12-08 ---*/ public class CalculatorTest { @Test public void evaluateExpression() { // make an instance of the class whose method is being tested Calculator calc = new Calculator(); int sum = calc.evaluate("1+2+3"); // assertEquals is a JUnit method whose first argument // should be the expected value, and the second is the // actual resulting value assertEquals("testing evaluate method: ", 6, sum); } }