最开始报错
Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
添加注解
@SpringBootTest
@RunWith(SpringRunner.class)
其中第二个注解需要依赖
import org.junit.runner.RunWith;
重新添加大部分依赖
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.0.0-RC2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.0.0-RC2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>4.12.0-RC2</version>
<scope>test</scope>
<