Class RequestEntityAssert<T>

    • Method Detail

      • hasMethod

        public RequestEntityAssert<T> hasMethod​(HttpMethod httpMethod)
        Verifies that the request entity's actual HTTP method is equal to the given one.
      • hasUrl

        public RequestEntityAssert<T> hasUrl​(URI url)
        Verifies that the request entity's actual url is equal to the given one.
      • hasUrl

        public RequestEntityAssert<T> hasUrl​(String url)
        Verifies that the request entity's actual url is equal to the given one.
      • hasBody

        public RequestEntityAssert<T> hasBody​(T body)
        Verifies that the request entity's actual body is equal to the given one.
      • hasAcceptHeader

        public RequestEntityAssert<T> hasAcceptHeader​(MediaType mediaType)
        Verifies that the request entity's actual Accept header is equal to the given one.
      • hasContentTypeHeader

        public RequestEntityAssert<T> hasContentTypeHeader​(MediaType mediaType)
        Verifies that the request entity's Content-Type header is equal to the given one.
      • hasJsonAcceptAndContentTypeHeaders

        public RequestEntityAssert<T> hasJsonAcceptAndContentTypeHeaders()
        Verifies that the request entity's Accept and and Content-Type headers are both equal to application/json.
        See Also:
        MediaType.APPLICATION_JSON
      • hasAuthorizationHeader

        public RequestEntityAssert<T> hasAuthorizationHeader​(String value)
        Verifies that the request entity's Authorization header is equal to the given one.