-
- All Implemented Interfaces:
public class JSONMockServerDSL.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static JSONMockServerDSL.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Voidfail(String message)final MediaTypecheckMediaType(String header, String name)final BooleanequalIgnoringQuery(URI $self, URI other)final HttpHeaderscombineHeaders(HttpHeaders headers, MediaType contentType)final ResponseActionsmock(MockRestServiceServer $self, ExpectedCount expectedCount, HttpMethod method, URI uri, Function1<JSONMockServerDSL, Unit> block)final ResponseActionsmockGet(MockRestServiceServer $self, ExpectedCount expectedCount, URI uri, Function1<JSONMockServerDSL, Unit> block)final ResponseActionsmockPost(MockRestServiceServer $self, ExpectedCount expectedCount, URI uri, Function1<JSONMockServerDSL, Unit> block)-
-
Method Detail
-
checkMediaType
final MediaType checkMediaType(String header, String name)
-
equalIgnoringQuery
final Boolean equalIgnoringQuery(URI $self, URI other)
-
combineHeaders
final HttpHeaders combineHeaders(HttpHeaders headers, MediaType contentType)
-
mock
final ResponseActions mock(MockRestServiceServer $self, ExpectedCount expectedCount, HttpMethod method, URI uri, Function1<JSONMockServerDSL, Unit> block)
-
mockGet
final ResponseActions mockGet(MockRestServiceServer $self, ExpectedCount expectedCount, URI uri, Function1<JSONMockServerDSL, Unit> block)
-
mockPost
final ResponseActions mockPost(MockRestServiceServer $self, ExpectedCount expectedCount, URI uri, Function1<JSONMockServerDSL, Unit> block)
-
-
-
-