-
- All Implemented Interfaces:
public final class JSONMockServerDSLA DSL class to assist with setting up MockRestServiceServer configurations. Instances of this class are created by the
mock,mockGetormockPostextension functions on MockRestServiceServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONMockServerDSL.Companion
-
Method Summary
Modifier and Type Method Description final UnitrequestTo(String expectedURI)final UnitrequestTo(URI expectedURI)final UnitrequestTo(Matcher<in String> matcher)final Unitmethod(HttpMethod method)final UnitqueryParam(String name, String expectedValues)final Unitheader(String name, String expectedValues)final Unitheader(String name, Matcher<in String> matchers)final UnitacceptApplicationJSON()final UnitheaderDoesNotExist(String name)final UnitrequestJSON(Function1<JSONExpect, Unit> tests)-
-
Method Detail
-
queryParam
final Unit queryParam(String name, String expectedValues)
-
acceptApplicationJSON
final Unit acceptApplicationJSON()
-
headerDoesNotExist
final Unit headerDoesNotExist(String name)
-
requestJSON
final Unit requestJSON(Function1<JSONExpect, Unit> tests)
-
-
-
-