testing with spring boot:解释如何使用Spring Boot测试应用程序的存储库 源码

qqcustody53791 10 0 ZIP 2021-02-17 23:02:43

使用Spring Boot 1.5进行测试 该存储库包含用于演示对新的Spring Boot 1.5测试支持的用法的代码。 特别是它显示了以下用途: 断言 @LocalServerPort通过 @RestClientTest通过 @JsonTest通过 @DataJpaTest通过 @MockBean和@WebMvcTest通过 @WebMvcTest使用Selenium和通过的HtmlUnit 和 TestRestTemplate通过 @Rule OutputCapture通过@Rule OutputCapture

用户评论
请输入评论内容
评分:
暂无评论