1.选好一个IDEA项目 2.在项目上方加@Test注解 3.点击红色感叹号,导入JUnit4 4.点击ok,导入成功 5.测试运行 来源:https://www.cnblogs.com/lkylin/p/12424920.html 标签 idea junit