总结一下自己的心路历程。
1.按照https://www.cnblogs.com/qinxu/p/7844964.html
步骤按照了junit相关插件
如果像我这样没有browse repository在下面,直接在搜索框里搜一下,然后再搜索junit,就能找到了
2.报错。说找不到org.junit
https://blog.csdn.net/he99774/article/details/78254262
2.报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing错误
搜索后发现是这个问题
https://blog.csdn.net/u011954243/article/details/77962329
选择了junit4.12 + hamcrest-core-1.3.jar
https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core/1.3