摘要: 背景: 近期新项目开发,测试接口需要使用mock服务,计划采用java代码写,在网上找了相关例子写了一版(样例如下),结果发现,是和源代码强关联的,因为没有查看代码权限,故转而使用postman来搭建mock服务。 import java.util.List;public class SignonS 阅读全文
posted @ 2020-03-17 18:20 寒冰宇若 阅读(5146) 评论(0) 推荐(0) 编辑
摘要: 1 什么是Mock? 截取一段stackflow中的解释: Mocking isprimarily used in unit testing. An object under test may have dependencies onother (complex) objects. To isola 阅读全文
posted @ 2020-03-17 14:47 寒冰宇若 阅读(1032) 评论(1) 推荐(0) 编辑