-
- All Implemented Interfaces:
public final class JSONMockMvcKt
-
-
Method Summary
Modifier and Type Method Description final static JSONResultActionsDSLgetForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a GET call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLgetForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a GET call to a MockMvc with the nominated URI, setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLpostJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a POST call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables). final static JSONResultActionsDSLpostJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a POST call to a MockMvc with the nominated URI. final static JSONResultActionsDSLpostForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a POST call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLpostForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a POST call to a MockMvc with the nominated URI, setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLputJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PUT call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables). final static JSONResultActionsDSLputJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PUT call to a MockMvc with the nominated URI. final static JSONResultActionsDSLputForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PUT call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLputForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PUT call to a MockMvc with the nominated URI, setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLpatchForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PATCH call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLpatchForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a PATCH call to a MockMvc with the nominated URI, setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLdeleteForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a DELETE call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.final static JSONResultActionsDSLdeleteForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)Make a DELETE call to a MockMvc with the nominated URI, setting the Acceptheader toapplication/jsonto indicate that the expected response is JSON.-
-
Method Detail
-
getForJSON
final static JSONResultActionsDSL getForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a GET call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
getForJSON
final static JSONResultActionsDSL getForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a GET call to a MockMvc with the nominated URI, setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
postJSON
final static JSONResultActionsDSL postJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a POST call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables). Further details may be added to the request with the optional configuration lambda.
-
postJSON
final static JSONResultActionsDSL postJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a POST call to a MockMvc with the nominated URI. Further details may be added to the request with the optional configuration lambda.
-
postForJSON
final static JSONResultActionsDSL postForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a POST call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
postForJSON
final static JSONResultActionsDSL postForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a POST call to a MockMvc with the nominated URI, setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
putJSON
final static JSONResultActionsDSL putJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PUT call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables). Further details may be added to the request with the optional configuration lambda.
-
putJSON
final static JSONResultActionsDSL putJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PUT call to a MockMvc with the nominated URI. Further details may be added to the request with the optional configuration lambda.
-
putForJSON
final static JSONResultActionsDSL putForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PUT call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
putForJSON
final static JSONResultActionsDSL putForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PUT call to a MockMvc with the nominated URI, setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
patchForJSON
final static JSONResultActionsDSL patchForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PATCH call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
patchForJSON
final static JSONResultActionsDSL patchForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a PATCH call to a MockMvc with the nominated URI, setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
deleteForJSON
final static JSONResultActionsDSL deleteForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a DELETE call to a MockMvc with the nominated URL (created from a URL template string and an optional set of variables), setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
deleteForJSON
final static JSONResultActionsDSL deleteForJSON(MockMvc $self, URI uri, Function1<JSONMockHttpServletRequestDSL, Unit> block)
Make a DELETE call to a MockMvc with the nominated URI, setting the
Acceptheader toapplication/jsonto indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.
-
-
-
-