Package 

Class JSONMockMvcKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ResultActionsDsl getForJSON(MockMvc $self, URI uri, Function1<MockHttpServletRequestDsl, 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.
      final static ResultActionsDsl getForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<MockHttpServletRequestDsl, 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.
      final static ResultActionsDsl postForJSON(MockMvc $self, URI uri, Function1<MockHttpServletRequestDsl, 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.
      final static ResultActionsDsl postForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<MockHttpServletRequestDsl, 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getForJSON

         final static ResultActionsDsl getForJSON(MockMvc $self, URI uri, Function1<MockHttpServletRequestDsl, 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.

      • getForJSON

         final static ResultActionsDsl getForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<MockHttpServletRequestDsl, 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.

      • postForJSON

         final static ResultActionsDsl postForJSON(MockMvc $self, URI uri, Function1<MockHttpServletRequestDsl, 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.

      • postForJSON

         final static ResultActionsDsl postForJSON(MockMvc $self, String urlTemplate, Object vars, Function1<MockHttpServletRequestDsl, 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.