解决方法:
<!--JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage-->
分析:网上大部分引入了Junit Viintage,若是只要使用junit5就不需要, 这个功能只是向下兼容性3.0或4.0版本:
故:Junit5=Junit Plaform+Junit Jupiter+junit Jupiter api
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.3.2</version>
<scope>test</scope>
</dependency>