Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ResultHandler.print() undefined

How come ResultHandler.print() is undefined? My Spring version is 3.2.5.RELEASE.

I am using it as

this.mockMvc.perform()...andDo(print());
like image 476
Rey Libutan Avatar asked Mar 26 '26 13:03

Rey Libutan


1 Answers

print() is defined on MockMvcResultHandlers not on ResultHandler

From the documentation:

 * static imports: MockMvcRequestBuilders.*, MockMvcResultHandlers.*
 *
 * mockMvc.perform(get("/form")).andDo(print());
like image 156
geoand Avatar answered Mar 29 '26 03:03

geoand



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!