随笔分类 -  单元测试

摘要:添加依赖 <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.8</version> <scope>test</scope> </dependency> 使用DataProvi 阅读全文
posted @ 2021-03-02 09:20 zendwang 阅读(589) 评论(0) 推荐(0)
摘要:两种方式 测试 该接口的单元测试的方法,在@Test 里面加上异常的 class名称 @Test(expectedExceptions= {NestedServletException.class}) public void testCreateServiceWithInvalidParamters 阅读全文
posted @ 2021-03-02 08:39 zendwang 阅读(986) 评论(0) 推荐(0)
摘要:PipeLine图解,在本地缓存,一次性发送 IMPORTANT NOTE: While the client sends commands using pipelining, the server will be forced to queue the replies, using memory. 阅读全文
posted @ 2020-09-27 16:05 zendwang 阅读(167) 评论(0) 推荐(0)
摘要:依赖 <!-- mybatis测试依赖 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter-test</artifactId> <version>1.3 阅读全文
posted @ 2020-09-03 11:45 zendwang 阅读(833) 评论(0) 推荐(0)