cookbook:ut
这是本文档旧的修订版!
验证抛出异常
ResponseStatusException exception =
assertThrows(
ResponseStatusException.class,
() -> {
controller.zipFile(request2);
});
assertEquals(exception.getStatus(), HttpStatus.BAD_REQUEST);
cookbook/ut.1634108798.txt.gz · 最后更改: 2021/10/13 15:06 由 plough