这是一个双重问题:
junit-vintage-engine
和junit-jupiter-engine
之间有什么区别?SpringBoot
启动器项目排除了junit-vintage-engine
。这是为了强制使用junit-jupiter-engine
吗?
以下是由Spring Initializr生成的我的SpringBoot项目的依赖关系:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>