How come ResultHandler.print() is undefined? My Spring version is 3.2.5.RELEASE.
I am using it as
this.mockMvc.perform()...andDo(print());
print() is defined on MockMvcResultHandlers not on ResultHandler
From the documentation:
* static imports: MockMvcRequestBuilders.*, MockMvcResultHandlers.*
*
* mockMvc.perform(get("/form")).andDo(print());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With