1. 创建一个目录,右键-- 设置为测试目录
2. maven项目中,需要重新添加依赖
如果添加失败,报错的话,可能是复制过去,报错,直接复制下面的网址,找到对应的版本去重新拿到依赖的那个
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
<dependency>
<groupId>org.springframewomework</groupId&