-
- All Implemented Interfaces:
public final class JSONContentResultMatchersDSLDSL class to provide
contentmatching functions forMockMvc.
-
-
Field Summary
Fields Modifier and Type Field Description private final JSONResultActionsresultActions
-
Constructor Summary
Constructors Constructor Description JSONContentResultMatchersDSL(JSONResultActions resultActions)
-
Method Summary
Modifier and Type Method Description final JSONResultActionsgetResultActions()final UnitcontentType(String contentType)final UnitcontentType(MediaType contentType)final UnitcontentTypeCompatibleWith(String contentType)final UnitcontentTypeCompatibleWith(MediaType contentType)final Unitencoding(String encoding)final Unitstring(String string)final Unitstring(Function1<String, Boolean> test)final Unitstring(Matcher<String> matcher)final Unitbytes(ByteArray bytes)final UnitmatchesJSON(Function1<JSONExpect, Unit> tests)-
-
Constructor Detail
-
JSONContentResultMatchersDSL
JSONContentResultMatchersDSL(JSONResultActions resultActions)
-
-
Method Detail
-
getResultActions
final JSONResultActions getResultActions()
-
contentType
final Unit contentType(String contentType)
-
contentType
final Unit contentType(MediaType contentType)
-
contentTypeCompatibleWith
final Unit contentTypeCompatibleWith(String contentType)
-
contentTypeCompatibleWith
final Unit contentTypeCompatibleWith(MediaType contentType)
-
string
@Deprecated(message = "The use of Matcher may be removed in a future version", replaceWith = @ReplaceWith(imports = {}, expression = "string { test(it) }")) final Unit string(Matcher<String> matcher)
-
matchesJSON
final Unit matchesJSON(Function1<JSONExpect, Unit> tests)
-
-
-
-