It's a two-fold question.
- What is the difference between
junit-vintage-engine
andjunit-jupiter-engine
? - SpringBoot starter projects come with an exclusion for
junit-vintage-engine
. Is it to enforce the use of junit-jupiter-engine?
Below is the dependency of my SpringBoot project generated from Spring Initializr:
<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>