| Package | Description |
|---|---|
| org.wisdom.test.assertions |
| Modifier and Type | Method and Description |
|---|---|
static <T> HttpResponseAssert<T> |
WisdomAssertions.assertThat(HttpResponse<T> actual)
Give access to
HttpResponse assertion. |
static <T> HttpResponseAssert<T> |
HttpResponseAssert.assertThat(HttpResponse<T> actual)
Creates an
HttpResponseAssert instance. |
HttpResponseAssert<T> |
HttpResponseAssert.bodyMatches(String regex)
Checks that the Http Response body matches the given regex.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasBody()
Checks that the actual HTTP response has a body (content).
|
HttpResponseAssert<T> |
HttpResponseAssert.hasBody(T body)
Checks that the Http Response has the given body.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasCharset(Charset charset)
Checks that the Http Response body has the given charset.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasContentType(String contentType)
Checks that the Http Response has the given `content-type`.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasCookie(String cookieName)
Checks that the Http Response contains a cookie named `cookieName`.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasCookie(String cookieName,
String value)
Checks that the Http Response contains a cookie named `cookieName` and has the value `value`.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasHeader(String key)
Checks that the Http Response contains a header named `key`.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasHeader(String key,
String value)
Checks that the Http Response contains a header named `key` and has the value `value`.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasHeaders()
Checks that the actual HTTP response has at least one headers.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasInBody(String inBody)
Checks that the Http Response contains the given String in its body.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasJsonNumericField(String path,
double value)
Checks that the Http Response contains a numeric value at the given Json Pointer (JavaScript Object Notation
(JSON) Pointer).
|
HttpResponseAssert<T> |
HttpResponseAssert.hasJsonNumericField(String path,
int value)
Checks that the Http Response contains a numeric value at the given Json Pointer (JavaScript Object Notation
(JSON) Pointer).
|
HttpResponseAssert<T> |
HttpResponseAssert.hasJsonNumericField(String path,
long value)
Checks that the Http Response contains a numeric value at the given Json Pointer (JavaScript Object Notation
(JSON) Pointer).
|
HttpResponseAssert<T> |
HttpResponseAssert.hasJsonTextField(String path,
String value)
Checks that the Http Response contains a textual value at the given Json Pointer (JavaScript Object Notation
(JSON) Pointer).
|
HttpResponseAssert<T> |
HttpResponseAssert.hasJsonTextFieldContaining(String path,
String... values)
Checks that the Http Response contains a textual value at the given Json Pointer (JavaScript Object Notation
(JSON) Pointer) containing the given values.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasLength(int length)
Checks that the Http Response body has the given length.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasNotInBody(String inBody)
Checks that the Http Response does not contains the given String in its body.
|
HttpResponseAssert<T> |
HttpResponseAssert.hasStatus(int status)
Checks that the actual HTTP response has the given HTTP Status.
|
HttpResponseAssert<T> |
HttpResponseAssert.isJson()
Checks that the actual HTTP response has returned a content type that is
applicaiton/json. |
Copyright © 2013–2015 Wisdom Framework. All rights reserved.