版本问题:导入junit4或5
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
注:每一个依赖都有一个scope标签标示这个依赖可以在哪里使用。如果作用域为test,那么只能在测试 (Test Resource Root)包下使用
版本问题:导入junit4或5
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
注:每一个依赖都有一个scope标签标示这个依赖可以在哪里使用。如果作用域为test,那么只能在测试 (Test Resource Root)包下使用