cookbook:ut
差别
这里会显示出您选择的修订版和当前版本之间的差别。
上一修订版两侧同时换到之后的修订记录 | |||
cookbook:ut [2021/10/13 15:06] – 创建 plough | cookbook:ut [2021/10/19 14:57] – plough | ||
---|---|---|---|
行 8: | 行 8: | ||
}); | }); | ||
assertEquals(exception.getStatus(), | assertEquals(exception.getStatus(), | ||
+ | </ | ||
+ | |||
+ | ===== 捕获参数 ===== | ||
+ | < | ||
+ | var captor = ArgumentCaptor.forClass(GetFileRequest.class); | ||
+ | when(jetfirePublicApi.downloadFile(captor.capture())).thenReturn(file); | ||
+ | File resFile = client.downloadFile(fileId); | ||
+ | assertEquals(captor.getValue().getId(), | ||
</ | </ |
cookbook/ut.txt · 最后更改: 2022/01/10 13:09 由 plough