spring-test专题提供spring-test的最新资讯内容,帮你更好的了解spring-test。
似乎 <code>@SpringBatchTest</code> 要求使用 <code>dataSoruce</code> bean,但我的 JPA 在 <code>persistence.xml</code> 中定义
我有以下实体: <pre><code>@Getter @Setter @NoArgsConstructor @MappedSuperclass public class BaseEntity implements Serializable
我想使用 <code>MockRestServiceServer</code> 测试来自我的服务的传出 HTTP 调用。我使用以下代码让它工作:
我有很多“XyzService”项目,我有一个“ServiceConfiguration”项目,它只是作为服务项目中的依赖项实现的
我工作的一位客户要求使用使用 testng 编写的自定义测试框架,该框架允许使用 excel 文件处理不同的参
我决定将一个 h2 DB 添加到我的 Spring Boot 应用程序中以进行测试。我在我的文件夹 <code>application-test.proper
我在 <a href="https://github.com/poggs/spring-autowire-it-problem" rel="nofollow noreferrer">https://github.com/poggs/spring-autowire-i
我有一个要求,我必须在 POJO 类中使用 Spring bean 来检索 MyDomainClass 对象。由于在不受 Spring 管理的类中
根据我的理解,当Request Method为Get时,我们不应该有Request body,我们使用<code>@RequestParam</code>来读取url参
正如标题所暗示的,我正在寻找任何可以帮助我在 Springs 应用程序上下文(准确地说是持久性上下文)
我有一个经过验证的配置属性类。 <pre><code>@Data @Configuration @ConfigurationProperties(prefix = &#34;notifications&#3
我是 Junit5 和 spring 的新手。我正在使用 spring 将 webdriver(selenium) 对象注入页面类。这些页面类被注入到
在我的 POM 中,我将 Spring Boot 的版本从 2.3.5.RELEASE 升级到 2.4.2。结果,<code>mvn clean test</code> 现在失败并
我正在尝试配置包含在 Spring 测试和 Junit 中的 RestAssured 设置。关于这一点,我正在努力根据配置值使日
我有两个班 <pre><code>@Service public class A { } @Service public class B { @Autowired private A a; } </code></pre> <p
我有以下设置:Gradle、Spring Boot 2.3.2 + Spring Boot Test using <a href="https://docs.spring.io/spring-boot/docs/current/api/org
我正在从 Spring 4.3 升级到 Spring 5.3,但似乎 <code>@ActiveProviles</code> 注释不再支持占位符。 以下代码
我有一个集成测试,它使用 <code>@SpringBootTest</code> 来启动一个测试简单 Spring Boot 应用程序的 Spring 应用
为了避免 Spring 上下文一次又一次地重新加载,我已将 <code>@MockBean</code> 带注释的注入移动到父类,类似
我想为我的 BookService 编写一个测试。这就是那个测试。我不知道为什么我总是收到以下错误: <pre><co