Package org.springframework.test.web.servlet.result
@NonNullApi
@NonNullFields
package org.springframework.test.web.servlet.result
Contains built-in
ResultMatcher
and ResultHandler
implementations.
Use MockMvcResultMatchers
and MockMvcResultHandlers
to access instances of those implementations.
-
ClassDescriptionFactory for response content assertions.Factory for response cookie assertions.Factory for "output" flash attribute assertions.Factory for assertions on the selected handler or handler method.Factory for response header assertions.Factory for assertions on the response content using JsonPath expressions.Static factory methods for
ResultHandler
-based result actions.Static factory methods forResultMatcher
-based result actions.Factory for assertions on the model.Result handler that printsMvcResult
details to a given output stream — for example:System.out
,System.err
, a customjava.io.PrintWriter
, etc.A contract for how to actually write result information.Factory for assertions on the request.Factory for assertions on the response status.Factory for assertions on the selected view.Factory for assertions on the response content using XPath expressions.