1.依次点击 File - Project Structure - Modules - dependencies
2.选择JRs或者目录
3.选择IDEA安装目录下的lib文件夹
4.在lib文件夹下选择junit-4.11.jar,hamcrest-core-1.3.jar,junit.jar这三个文件,ok----勾选上三个文件
5.点击确认
6.在测试方法前加@Test
1.依次点击 File - Project Structure - Modules - dependencies
2.选择JRs或者目录
3.选择IDEA安装目录下的lib文件夹
4.在lib文件夹下选择junit-4.11.jar,hamcrest-core-1.3.jar,junit.jar这三个文件,ok----勾选上三个文件
5.点击确认
6.在测试方法前加@Test