gpt4 book ai didi

java - 找不到 SpringRunner 依赖类

转载 作者:行者123 更新时间:2023-12-04 11:52:57 24 4
gpt4 key购买 nike

我找不到哪个 jar 会为我提供 SpringRunner.class 的依赖项

我正在尝试将我的集成测试升级到 spring-boot 1.4.0

最佳答案

SpringRunner.java位于spring-test-4.3.2.RELEASE.jar文件。

为了在 Maven 或 Gradle 项目中使用它,您应该声明对 org.springframework.boot:spring-boot-starter-test 的依赖。 .

以下是 org.springframework.boot:spring-boot-starter-test 的库取决于:

+--- org.springframework.boot:spring-boot-starter-test: -> 1.4.0.RELEASE
| +--- org.springframework.boot:spring-boot-test:1.4.0.RELEASE
| | \--- org.springframework.boot:spring-boot:1.4.0.RELEASE (*)
| +--- org.springframework.boot:spring-boot-test-autoconfigure:1.4.0.RELEASE
| | +--- org.springframework.boot:spring-boot-test:1.4.0.RELEASE (*)
| | \--- org.springframework.boot:spring-boot-autoconfigure:1.4.0.RELEASE (*)
| +--- com.jayway.jsonpath:json-path:2.2.0
| | +--- net.minidev:json-smart:2.2.1
| | | \--- net.minidev:accessors-smart:1.1
| | | \--- org.ow2.asm:asm:5.0.3
| | \--- org.slf4j:slf4j-api:1.7.16 -> 1.7.19
| +--- junit:junit:4.12
| | \--- org.hamcrest:hamcrest-core:1.3
| +--- org.assertj:assertj-core:2.5.0 -> 2.4.1
| +--- org.mockito:mockito-core:1.10.19
| | +--- org.hamcrest:hamcrest-core:1.1 -> 1.3
| | \--- org.objenesis:objenesis:2.1 -> 2.2
| +--- org.hamcrest:hamcrest-core:1.3
| +--- org.hamcrest:hamcrest-library:1.3
| | \--- org.hamcrest:hamcrest-core:1.3
| +--- org.skyscreamer:jsonassert:1.3.0
| | \--- org.json:json:20090211 -> 20140107
| +--- org.springframework:spring-core:4.3.2.RELEASE
| \--- org.springframework:spring-test:4.3.2.RELEASE
| \--- org.springframework:spring-core:4.3.2.RELEASE

SpringRunner.java

关于java - 找不到 SpringRunner 依赖类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39074213/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com