Intellij IDEA 配置Junit


导包:

1、Hamcrest Core 包:    https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core/1.3

2、Junit包:  https://mvnrepository.com/artifact/junit/junit/4.12

打开Intellij IDEA

如果还未安装JUnit, 点击File  ==》 Settings ==》Plugins ==》 输入Junit 进行搜索 ==》 JUnit Generator V2.0

 Browse repositories ==》 install (安装完毕后重启 Intellij IDEA)

 

 点击File  ==》 Settings ==》 Other Generator ==》JUnit Generator

Output Path:  设置为:  ${SOURCEPATH}/../../test/java/${PACKAGE}/${FILENAME}

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM