-
- All Implemented Interfaces:
public final class JSONMockMvcResultMatchersDSLDSL class to provide result matching functions for
MockMvc.
-
-
Field Summary
Fields Modifier and Type Field Description private final MockHttpServletResponseresponseprivate final StringcontentAsStringprivate final JSONResultActionsresultActions
-
Constructor Summary
Constructors Constructor Description JSONMockMvcResultMatchersDSL(JSONResultActions resultActions)
-
Method Summary
Modifier and Type Method Description final MockHttpServletResponsegetResponse()final StringgetContentAsString()final JSONResultActionsgetResultActions()final Unitstatus(Function1<JSONStatusResultMatchersDSL, Unit> dsl)final Unitcontent(Function1<JSONContentResultMatchersDSL, Unit> dsl)final UnitcontentMatchesJSON(Function1<JSONExpect, Unit> tests)final Unitheader(Function1<JSONHeaderResultMatchersDSL, Unit> dsl)-
-
Constructor Detail
-
JSONMockMvcResultMatchersDSL
JSONMockMvcResultMatchersDSL(JSONResultActions resultActions)
-
-
Method Detail
-
getResponse
final MockHttpServletResponse getResponse()
-
getContentAsString
final String getContentAsString()
-
getResultActions
final JSONResultActions getResultActions()
-
status
final Unit status(Function1<JSONStatusResultMatchersDSL, Unit> dsl)
-
content
final Unit content(Function1<JSONContentResultMatchersDSL, Unit> dsl)
-
contentMatchesJSON
final Unit contentMatchesJSON(Function1<JSONExpect, Unit> tests)
-
header
final Unit header(Function1<JSONHeaderResultMatchersDSL, Unit> dsl)
-
-
-
-