I used here is IDEA2018.2.8 version, junit-4.10.jar use.
junit-4.10.jar download link link: https: //pan.baidu.com/s/1LN18YKLSd1UxB0ihZO6sAw extraction code: umio
How to add a package junit in 2.IDEA
Select File-Project Structure in the IDEA (directly or use the shortcut ctrl + alt + shift + s open), click on the far right of the + sign, select jars or directories.
Here find their own path Click OK to jar package.
3. Basic use code
Import junit test class package, class name generally based Test beginning. Add the code in the class to run "@Test" can, IDEA in this method before writing.