在使用@Test测试时出现报错有3种可能
1 @Test下面的必须是public
2 导包问题
导入的包必须是org.junit.Test
3 pom.xml没有正确引用
附上代码
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>