Class TestingFramework


  • public class TestingFramework
    extends java.lang.Object
    • Field Detail

      • ALL_METHODS

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

        public static final java.lang.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 java.lang.String DEFAULT_REQUEST_PATH
        If a test does not specify a path, this one is used.
        See Also:
        Constant Field Values
      • DEFAULT_REQUEST_BODY

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

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

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

        public static final java.util.Map<java.lang.String,​java.lang.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:
        Constant Field Values
      • DEFAULT_RESPONSE_BODY

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

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

        public static final java.util.Map<java.lang.String,​java.lang.String> DEFAULT_RESPONSE_HEADERS
        If a test does not specify expected response headers, these are used.
      • port

        private int port