单元测试 public class Calculator { public int result = 0; public int add(int operandl, int operand2) { result = operandl + operand2; return result; } public int subtract(int operandl, int operand2) { result = operandl - operand2; return result; } public…