我有一个使用 MockMvc 的 springBoot 2.1.9.RELEASE 应用程序。
我想知道是否有办法从文件中获取正文内容
mockMvc.perform(post("/hostel") .content(withBodyFile("hostel.json"))
就像我们可以做的那样
com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder (withBodyFile)
繁华开满天机
慕盖茨4494581
相关分类