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