Package 

Class JSONMockMvcKt

    • Constructor Detail

    • 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 Accept header to application/json to 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 Accept header to application/json to 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.

      • 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 Accept header to application/json to 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 Accept header to application/json to 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.

      • 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 Accept header to application/json to 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 Accept header to application/json to 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 Accept header to application/json to 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 Accept header to application/json to 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 Accept header to application/json to 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 Accept header to application/json to indicate that the expected response is JSON. Further details may be added to the request with the optional configuration lambda.