Package 

Class JSONResponseActions

  • All Implemented Interfaces:
    org.springframework.test.web.client.ResponseActions

    
    public final class JSONResponseActions
     implements ResponseActions
                        

    Replacement implementation for ResponseActions, allowing access to the JSONConfig instance discovered through Spring auto-wiring.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ResponseActions responseActions
      private final JSONConfig config
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONResponseActions(ResponseActions responseActions, JSONConfig config)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ResponseActions getResponseActions()
      final JSONConfig getConfig()
      JSONResponseActions andExpect(RequestMatcher requestMatcher)
      Unit andRespond(ResponseCreator responseCreator)
      final Unit respondJSON(HttpStatus status, HttpHeaders headers, Function0<Object> block)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait