【发布时间】:2023-01-12 15:37:31
【问题描述】:
标签: java spring-boot junit-jupiter
标签: java spring-boot junit-jupiter
您必须将依赖项添加到类路径中。如果您使用的是 maven 添加:
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
到你的 pom.xml
【讨论】: