I have a springBoot 2.1.9.RELEASE application that uses MockMvc.
I would like to know if there is a way to get the content of the body from a file
mockMvc.perform(post("/hostel")
.content(withBodyFile("hostel.json"))
like we can do with
com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder (withBodyFile)