Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
junit-vintage-engine 和 junit-jupiter-engine 之间的区别?
这是一个双重问题 有什么区别junit vintage engine and junit jupiter engine Spring Boot 入门项目排除了junit vintage engine 是强制使用junit jupiter e
Java
springboot
JUnit
SpringBootTest
Spring Boot 上下文负载测试挂起
我们有一个用 Kotlin 编写的 Spring Boot 应用程序 问题是它在 Maven clean 测试期间挂起 同时运行下面的上下文负载测试 爪哇 14 0 1 科特林 1 4 20 春季启动 2 3 6 RELEASE 春云 Ho
springboot
SpringDataJPA
HikariCP
SpringBootTest
在 Spring Boot 2.1 中,由于多个@BootstrapWith,许多测试切片不再被允许
我尝试升级由两个测试片组成的美味三明治 在我的例子中为 JsonTest 和 JdbcTest 中间有松脆的测试代码 为其添加 Spring Boot 2 1 风味 但似乎并没有取得多大成功 我无法用许多 Test 注释我的测试 因为它们现
SpringBootTest
@AutoConfigureWebMvc 和 @AutoConfigureMockMvc 有什么区别?
在什么情况下我应该使用每一个 AutoConfigureWebMvc 如果您需要配置 Web 层进行测试但又不这样做 请使用此选项 需要使用MockMvc 它启用与 Web 层相关的所有自动配置ONLY网络层 这是整体自动配置的一个子集 它
Spring
springboot
SpringBootTest
如何在一个 MVC 应用程序中组合 @DataJpaTest @SpringBootTest 来测试每一层?
Here https stackoverflow com a 52968130 10894456 https stackoverflow com a 52968130 10894456很好地解释了为什么 DataJpaTest Spring
springboot
SpringBootTest
springbootjpa
使用 WebFlux 的 Spring Boot 在测试中总是抛出 403 状态
非常感谢您查看我的问题 我有一些奇怪的主题 我的 Spring Boot 测试不起作用 它们启动成功 但在向任何控制器发出请求时总是抛出 403 HTTP 状态 我有一些具有下一个依赖项的项目 buildscript ext kotlin
Spring
springboot
SpringWebFlux
projectreactor
SpringBootTest
如何仅使用单个 bean 并使用包含的resilience4j注释来运行SpringBootTest
我想在 Spring Boot 应用程序中运行带有resilience4j 注释方法的单个 bean 的集成测试 我的目的是在不加载完整的 spring 上下文的情况下测试 bean 方法调用的弹性 设置如下 依赖项包括以下内容 io gi
springtest
SpringBootTest
resilience4j
Spring boot 属性值从 String 到 Duration 的转换在应用程序中有效,但在单元测试中失败
根据春季文档 https docs spring io spring boot docs 2 1 8 RELEASE reference html boot features external config html boot featur
Java
springboot
SpringBootTest
springproperties
spring boot测试junit空指针异常
我对单元测试很陌生 所以我尝试为我的服务编写单元测试代码 现在我有这个课程 package com praxis topics service import com praxis topics exception EntityNotFoun
Junit5
SpringBootTest
如何在集成测试中一起使用@DataMongoTest和@SpringBootTest
我正在尝试为我的其余应用程序之一编写集成测试用例 该应用程序在内部使用 mongodb 来保存数据 DataMongoTest SpringBootTest webEnvironment WebEnvironment RANDOM PORT
JUnit
integrationtesting
SpringBootTest
如何使用 SpringBootTest 启用 JPA 审计?
我想为我的 RestAPI 端点编写集成测试 但我正在努力解决 EnableJpaAuditing 我希望 Spring 审核我的一些实体 因此我创建了以下配置类 Configuration EnableJpaAuditing public
Java
springboot
SpringDataJPA
SpringBootTest
auditing
Spring Boot 应用程序正在从 JUnit 测试启动,但无法通过 URL 访问
我有一个 JUnit 测试来启动我的 spring boot appcliation Application java RunWith SpringRunner class SpringBootTest classes Applicatio
Java
springboot
JUnit
SpringBootTest
Spring boot:@ConfigurationProperties 测试不满足
我在测试执行时遇到此异常 UnsatisfiedDependencyException 创建名为 net gencat transversal espaidoc mongo GridFSTest 的 bean 时出错 通过字段 resour
springboot
SpringBootTest
使用 Spring Kafka 添加自定义标头
我计划使用 Spring Kafka 客户端在 Spring Boot 应用程序中使用 kafka 设置并生成消息 我看到 Kafka 0 11 中对自定义标头的支持详情here https issues apache org jira b
Spring
ApacheKafka
springKafka
SpringBootTest
@WithUserDetails 似乎不起作用
我有一个应用程序 其中使用 Spring Social Security 进行身份验证和授权 不幸的是 我在模拟 Spring Security 时遇到了一些问题 似乎根本不起作用 我有一个 REST 控制器 如果它应该返回的实体的标识符不
unittesting
springboot
SpringSecurity
springsocial
SpringBootTest
当 MockRestServiceServer 设置为 ExpectedCount.manyTimes() 时,预计不再有请求
我的弹簧集成应用程序有以下测试类 该测试类成功单独启动 SpringBootTest classes BackupTestDefinition class ActiveProfiles test dev RunWith SpringRunn
Spring
springboot
springintegration
SpringBootTest
Spring集成测试启动缓慢。原因?无法禁用 RabbitMQ
我在启动集成测试时遇到性能问题 我正在尝试模拟系统的消息传递 为此 我基本上使用 MockBean在我的网关上并使用 EnableAutoConfiguration exclude RabbitAutoConfiguration class
Spring
springboot
rabbitmq
integrationtesting
SpringBootTest
对于 @TestConfiguration 类的 @SpringBootTest @Import 不执行任何操作,而 @ContextConfiguration 按预期覆盖
考虑以下集成测试注释 RunWith SpringRunner class SpringBootTest webEnvironment SpringBootTest WebEnvironment NONE properties spring
springboot
SpringBootTest
Spring boot @DataJpaTest排除过滤器不起作用
我有这个测试 RunWith SpringRunner class DataJpaTest excludeFilters Filter type FilterType REGEX pattern io rainrobot adwisdom
springboot
SpringDataJPA
SpringBootTest
使用 @RestClientTest 对 Rest 客户端进行 Spring Boot 测试
我正在使用 spring boot 1 5 8 并想测试我的客户端 Component public class RestClientBean implements RestClient private Map
Java
RestTemplate
SpringBootTest
mockrestserviceserver
1
2
»