本机:java版本:1.8
pom中是junit版本:4.12
出现问题:在使用@Test 无法引入 : org.junit.Test;
解决方法:junit在pom.xml改为 4.12-beta-3 解决
pom 重新引入:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12-beta-3</version>
</dependency>
原文:https://www.cnblogs.com/651434092qq/p/12718576.html