参考:https://blog.csdn.net/qq_39967911/article/details/103237291
help ->Edit Custom VM Options... -> 加上
-Deditable.java.test.console=true
这句话重启IDEA 就好使了
IDEA 单元测试System.in 没办法输入
原文:https://www.cnblogs.com/zxhbk/p/13268067.html