IDEA中导入JUnit

——载好JUnit

链接——  https://github.com/junit-team/junit4/wiki/Download-and-Install#gradle

找到这个模块

 点击junit.jar,选择 junit-4.13.2.jar

点击hamcrest-core.jar,选择hamcrest-core-1.3.jar

下载到电脑本地 

 

——导入JUnit

新建Java项目(命名为JUnit)

在项目中新建文件夹lib

 将下载好的JUnit导入lib

 右键lib选择Add as Library…… ——》 ok

导入完成

 

 

参考——

https://blog.csdn.net/qq_71443736/article/details/134370536

posted @ 2024-04-25 10:54  椰子灰  阅读(849)  评论(0)    收藏  举报