需要的jar

也可以使用maven
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
新版的已经迁移了:

<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
本文介绍如何从JUnit 4.12升级到JUnit Jupiter 5.6.0,包括更新依赖配置和迁移指南,适用于希望更新其单元测试框架的开发者。
1563

被折叠的 条评论
为什么被折叠?



