spring-framework / org.springframework.test.web.servlet.result / PrintingResultHandler

PrintingResultHandler

open class PrintingResultHandler : ResultHandler

Result handler that prints MvcResult details to a given output stream — for example: System.out, System.err, a custom java.io.PrintWriter, etc.

An instance of this class is typically accessed via one of the print or log methods in MockMvcResultHandlers.

Author
Rossen Stoyanchev

Author
Sam Brannen

Since
3.2

Functions

handle

fun handle(result: MvcResult): Unit

Print MvcResult details.