Uses of Interface
org.springframework.test.web.servlet.ResultHandler
Packages that use ResultHandler Package Description org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.result Contains built-inResultMatcher
andResultHandler
implementations.org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
implementations.Uses of ResultHandler in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet with parameters of type ResultHandler Modifier and Type Method Description ResultActions
ResultActions. andDo(ResultHandler handler)
Perform a general action.Uses of ResultHandler in org.springframework.test.web.servlet.result
Classes in org.springframework.test.web.servlet.result that implement ResultHandler Modifier and Type Class Description class
PrintingResultHandler
Result handler that printsMvcResult
details to a given output stream — for example:System.out
,System.err
, a customjava.io.PrintWriter
, etc.Methods in org.springframework.test.web.servlet.result that return ResultHandler Modifier and Type Method Description static ResultHandler
MockMvcResultHandlers. log()
LogMvcResult
details as aDEBUG
log message via Apache Commons Logging using the log categoryorg.springframework.test.web.servlet.result
.static ResultHandler
MockMvcResultHandlers. print()
PrintMvcResult
details to the "standard" output stream.static ResultHandler
MockMvcResultHandlers. print(OutputStream stream)
PrintMvcResult
details to the suppliedOutputStream
.static ResultHandler
MockMvcResultHandlers. print(Writer writer)
Uses of ResultHandler in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type ResultHandler Modifier and Type Method Description <T extends B>
TAbstractMockMvcBuilder. alwaysDo(ResultHandler resultHandler)
<T extends B>
TConfigurableMockMvcBuilder. alwaysDo(ResultHandler resultHandler)
Define a global action that should always be applied to every response.