Package org.springframework.test.web.servlet.result
Contains built-in
ResultMatcher
and ResultHandler
implementations. Use MockMvcResultMatchers
and MockMvcResultHandlers
to access instances of those implementations.
Interface Summary Interface Description PrintingResultHandler.ResultValuePrinter A contract for how to actually write result information.Class Summary Class Description ContentResultMatchers Factory for response content assertions.CookieResultMatchers Factory for response cookie assertions.FlashAttributeResultMatchers Factory for "output" flash attribute assertions.HandlerResultMatchers Factory for assertions on the selected handler or handler method.HeaderResultMatchers Factory for response header assertions.JsonPathResultMatchers Factory for assertions on the response content using JsonPath expressions.MockMvcResultHandlers Static factory methods forResultHandler
-based result actions.MockMvcResultMatchers Static factory methods forResultMatcher
-based result actions.ModelResultMatchers Factory for assertions on the model.PrintingResultHandler Result handler that printsMvcResult
details to a given output stream — for example:System.out
,System.err
, a customjava.io.PrintWriter
, etc.RequestResultMatchers Factory for assertions on the request.StatusResultMatchers Factory for assertions on the response status.ViewResultMatchers Factory for assertions on the selected view.XpathResultMatchers Factory for assertions on the response content using XPath expressions.