Package | Description |
---|---|
com.jcabi.http.response |
Responses.
|
Modifier and Type | Method and Description |
---|---|
RestResponse |
RestResponse.assertBody(org.hamcrest.Matcher<String> matcher)
Verifies HTTP response body content against provided matcher,
and throws
AssertionError in case of mismatch. |
RestResponse |
RestResponse.assertHeader(String name,
org.hamcrest.Matcher<Iterable<String>> matcher)
Verifies HTTP header against provided matcher, and throws
AssertionError in case of mismatch. |
RestResponse |
RestResponse.assertHeader(String name,
String value)
Verifies HTTP header against provided matcher, and throws
AssertionError in case of mismatch. |
RestResponse |
RestResponse.assertStatus(int status)
Verifies HTTP response status code against the provided absolute value,
and throws
AssertionError in case of mismatch. |
RestResponse |
RestResponse.assertStatus(org.hamcrest.Matcher<Integer> matcher)
Verifies HTTP response status code against the provided matcher,
and throws
AssertionError in case of mismatch. |
RestResponse |
RestResponse.assertThat(org.hamcrest.Matcher<Response> matcher)
Assert using custom matcher.
|
Copyright © 2012–2014 jcabi.com. All rights reserved.