|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ResponseSpecBuilder | |
|---|---|
| com.jayway.restassured.builder | |
| Uses of ResponseSpecBuilder in com.jayway.restassured.builder |
|---|
| Methods in com.jayway.restassured.builder that return ResponseSpecBuilder | |
|---|---|
ResponseSpecBuilder |
ResponseSpecBuilder.addResponseSpecification(ResponseSpecification specification)
Merge this builder with settings from another specification. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectBody(org.hamcrest.Matcher<?> matcher)
Expect that the response content conforms to one or more Hamcrest matchers. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectBody(String key,
List<Argument> arguments,
org.hamcrest.Matcher<?> matcher)
Same as expectBody(String, org.hamcrest.Matcher) expect that you can pass arguments to the key. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectBody(String key,
org.hamcrest.Matcher<?> matcher)
Expect that the JSON or XML response content conforms to one or more Hamcrest matchers. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContent(org.hamcrest.Matcher<?> matcher)
Expect that the response content conforms to one or more Hamcrest matchers. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContent(String key,
List<Argument> arguments,
org.hamcrest.Matcher<?> matcher)
Same as expectContent(String, org.hamcrest.Matcher) expect that you can pass arguments to the key. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContent(String key,
org.hamcrest.Matcher<?> matcher)
Expect that the JSON or XML response content conforms to one or more Hamcrest matchers. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContentType(groovyx.net.http.ContentType contentType)
Set the response content type to be contentType. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContentType(String contentType)
Set the response content type to be contentType. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectCookie(String cookieName)
Expect that a cookie exist in the response, regardless of value (it may have no value at all). |
ResponseSpecBuilder |
ResponseSpecBuilder.expectCookie(String cookieName,
org.hamcrest.Matcher<String> expectedValueMatcher)
Expect that a response cookie matches the supplied cookie name and hamcrest matcher. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectCookie(String cookieName,
String expectedValue)
Expect that a response cookie matches the supplied name and value. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectCookies(Map<String,Object> expectedCookies)
Expect that response cookies matches those specified in a Map. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectHeader(String headerName,
org.hamcrest.Matcher<String> expectedValueMatcher)
Expect that a response header matches the supplied header name and hamcrest matcher. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectHeader(String headerName,
String expectedValue)
Expect that a response header matches the supplied name and value. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectHeaders(Map<String,Object> expectedHeaders)
Expect that response headers matches those specified in a Map. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectStatusCode(int expectedStatusCode)
Expect that the response status code matches an integer. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectStatusCode(org.hamcrest.Matcher<Integer> expectedStatusCode)
Expect that the response status code matches the given Hamcrest matcher. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectStatusLine(org.hamcrest.Matcher<String> expectedStatusLine)
Expect that the response status line matches the given Hamcrest matcher. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectStatusLine(String expectedStatusLine)
Expect that the response status line matches the given String. |
ResponseSpecBuilder |
ResponseSpecBuilder.registerParser(String contentType,
Parser parser)
Register a content-type to be parsed using a predefined parser. |
ResponseSpecBuilder |
ResponseSpecBuilder.rootPath(String rootPath)
Set the root path of the response body so that you don't need to write the entire path for each expectation. |
ResponseSpecBuilder |
ResponseSpecBuilder.setDefaultParser(Parser parser)
Register a default predefined parser that will be used if no other parser (registered or pre-defined) matches the response content-type. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||