Uses of Interface
org.springframework.test.web.servlet.ResultHandler
Package
Description
Contains server-side support for testing Spring MVC applications.
AssertJ support for MockMvc.
Contains built-in
ResultMatcher
and ResultHandler
implementations.Contains built-in
MockMvcBuilder
implementations.-
Uses of ResultHandler in org.springframework.test.web.servlet
Modifier and TypeMethodDescriptionResultActions.andDo
(ResultHandler handler) Perform a general action. -
Uses of ResultHandler in org.springframework.test.web.servlet.assertj
Modifier and TypeMethodDescriptionMvcTestResultAssert.apply
(ResultHandler resultHandler) Apply the givenResultHandler
to the actual MVC result. -
Uses of ResultHandler in org.springframework.test.web.servlet.result
Modifier and TypeClassDescriptionclass
Result handler that printsMvcResult
details to a given output stream — for example:System.out
,System.err
, a customjava.io.PrintWriter
, etc.Modifier and TypeMethodDescriptionstatic 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
-
Uses of ResultHandler in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionfinal <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.