java退出控制台,Java编写单元测试,用于在控制台中退出用户类型时退出程序
I found really hard to write unit test for this method, it basically exits the program when user types a quit command.SytemExit class:public class SystemExit {public void exit(int status) {System.exit...