Class TestingFramework

java.lang.Object
org.apache.hc.core5.testing.framework.TestingFramework

public class TestingFramework extends Object
  • Field Details

    • ALL_METHODS

      public static final List<String> ALL_METHODS
      Use the ALL_METHODS list to conveniently cycle through all HTTP methods.
    • ALREADY_CHECKED

      public static final Object ALREADY_CHECKED
      If an ClassicTestClientTestingAdapter is unable to return a response in the format this testing framework is needing, then it will need to check the item in the response (such as body, status, headers, or contentType) itself and set the returned value of the item as ALREADY_CHECKED.
    • DEFAULT_REQUEST_PATH

      public static final String DEFAULT_REQUEST_PATH
      If a test does not specify a path, this one is used.
      See Also:
    • DEFAULT_REQUEST_BODY

      public static final String DEFAULT_REQUEST_BODY
      If a test does not specify a body, this one is used.
      See Also:
    • DEFAULT_REQUEST_CONTENT_TYPE

      public static final String DEFAULT_REQUEST_CONTENT_TYPE
      If a test does not specify a request contentType, this one is used.
      See Also:
    • DEFAULT_REQUEST_QUERY

      public static final Map<String,String> DEFAULT_REQUEST_QUERY
      If a test does not specify query parameters, these are used.
    • DEFAULT_REQUEST_HEADERS

      public static final Map<String,String> DEFAULT_REQUEST_HEADERS
      If a test does not specify a request headers, these are used.
    • DEFAULT_REQUEST_PROTOCOL_VERSION

      public static final ProtocolVersion DEFAULT_REQUEST_PROTOCOL_VERSION
      If a test does not specify a protocol version, this one is used.
    • DEFAULT_RESPONSE_STATUS

      public static final int DEFAULT_RESPONSE_STATUS
      If a test does not specify an expected response status, this one is used.
      See Also:
    • DEFAULT_RESPONSE_BODY

      public static final String DEFAULT_RESPONSE_BODY
      If a test does not specify an expected response body, this one is used.
      See Also:
    • DEFAULT_RESPONSE_CONTENT_TYPE

      public static final String DEFAULT_RESPONSE_CONTENT_TYPE
      If a test does not specify an expected response contentType, this one is used.
      See Also:
    • DEFAULT_RESPONSE_HEADERS

      public static final Map<String,String> DEFAULT_RESPONSE_HEADERS
      If a test does not specify expected response headers, these are used.
  • Constructor Details

  • Method Details