Package | Description |
---|---|
io.restassured | |
io.restassured.builder | |
io.restassured.internal | |
io.restassured.response | |
io.restassured.specification |
Modifier and Type | Method and Description |
---|---|
static List<Argument> |
RestAssured.withArgs(Object firstArgument,
Object... additionalArguments)
Create a list of arguments that can be used to create parts of the path in a body/content expression.
|
static List<Argument> |
RestAssured.withArguments(Object firstArgument,
Object... additionalArguments)
Deprecated.
Use
RestAssured.withArgs(Object, Object...) instead |
static List<Argument> |
RestAssured.withNoArgs()
Create a list of no arguments that can be used to create parts of the path in a response specification for JSON, XML or HTML validation.
|
static List<Argument> |
RestAssured.withNoArguments()
Deprecated.
Use
RestAssured.withNoArgs() instead |
Modifier and Type | Method and Description |
---|---|
ResponseSpecBuilder |
ResponseSpecBuilder.appendRootPath(String pathToAppend,
List<Argument> arguments)
Append the given path to the root path with arguments supplied of the response body so that you don't need to write the entire path for each expectation.
|
ResponseSpecBuilder |
ResponseSpecBuilder.expectBody(String path,
List<Argument> arguments,
org.hamcrest.Matcher<?> matcher)
Same as
ResponseSpecBuilder.expectBody(String, org.hamcrest.Matcher) expect that you can pass arguments to the path. |
ResponseSpecBuilder |
ResponseSpecBuilder.expectContent(String path,
List<Argument> arguments,
org.hamcrest.Matcher<?> matcher)
Deprecated.
|
ResponseSpecBuilder |
ResponseSpecBuilder.rootPath(String rootPath,
List<Argument> arguments)
Set the root path of the response body so that you don't need to write the entire path for each expectation.
|
Modifier and Type | Method and Description |
---|---|
T |
ValidatableResponseOptionsImpl.appendRoot(String pathToAppend,
List<Argument> arguments) |
ResponseSpecification |
ResponseSpecificationImpl.appendRoot(String pathToAppend,
List<Argument> arguments) |
T |
ValidatableResponseOptionsImpl.body(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
ResponseSpecification |
ResponseSpecificationImpl.body(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
T |
ValidatableResponseOptionsImpl.body(List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher) |
T |
ValidatableResponseOptionsImpl.body(String path,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
ResponseSpecification |
ResponseSpecificationImpl.body(String key,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
T |
ValidatableResponseOptionsImpl.body(String key,
List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher) |
T |
ValidatableResponseOptionsImpl.content(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
ResponseSpecification |
ResponseSpecificationImpl.content(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
T |
ValidatableResponseOptionsImpl.content(List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher) |
T |
ValidatableResponseOptionsImpl.content(String path,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
ResponseSpecification |
ResponseSpecificationImpl.content(String key,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs) |
T |
ValidatableResponseOptionsImpl.content(String path,
List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher) |
T |
ValidatableResponseOptionsImpl.root(String rootPath,
List<Argument> arguments) |
ResponseSpecification |
ResponseSpecificationImpl.root(String rootPath,
List<Argument> arguments) |
T |
ValidatableResponseOptionsImpl.rootPath(String rootPath,
List<Argument> arguments) |
ResponseSpecification |
ResponseSpecificationImpl.rootPath(String rootPath,
List<Argument> arguments) |
Modifier and Type | Method and Description |
---|---|
T |
ValidatableResponseOptions.appendRoot(String pathToAppend,
List<Argument> arguments)
Append the given path to the root path with arguments supplied of the response body so that you don't need to write the entire path for each expectation.
|
T |
ValidatableResponseOptions.body(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
This as special kind of expectation that is mainly useful when you've specified a root path with an argument placeholder.
|
T |
ValidatableResponseOptions.body(List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher)
Compare a path in the response body to something available in the response using arguments when root path is used.
|
T |
ValidatableResponseOptions.body(String path,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
Same as
ValidatableResponseOptions.body(String, org.hamcrest.Matcher, Object...) expect that you can pass arguments to the key. |
T |
ValidatableResponseOptions.body(String path,
List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher)
Compare a path in the response body to something available in the response using arguments.
|
T |
ValidatableResponseOptions.content(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
This as special kind of validation that is mainly useful when you've specified a root path with an argument placeholder.
|
T |
ValidatableResponseOptions.content(List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher)
Compare a path in the response body to something available in the response using arguments when root path is used.
|
T |
ValidatableResponseOptions.content(String path,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
Same as
ValidatableResponseOptions.body(String, java.util.List, org.hamcrest.Matcher, Object...) expect that you can pass arguments to the path. |
T |
ValidatableResponseOptions.content(String path,
List<Argument> arguments,
ResponseAwareMatcher<R> responseAwareMatcher)
Compare a path in the response body to something available in the response using arguments.
|
T |
ValidatableResponseOptions.root(String rootPath,
List<Argument> arguments)
Set the root path with arguments of the response body so that you don't need to write the entire path for each expectation.
|
T |
ValidatableResponseOptions.rootPath(String rootPath,
List<Argument> arguments)
Set the root path with arguments of the response body so that you don't need to write the entire path for each expectation.
|
Modifier and Type | Method and Description |
---|---|
static Argument |
Argument.arg(Object arg) |
static Argument |
Argument.withArg(Object arg) |
Modifier and Type | Method and Description |
---|---|
ResponseSpecification |
ResponseSpecification.appendRoot(String pathToAppend,
List<Argument> arguments)
Append the given path to the root path with arguments supplied of the response body so that you don't need to write the entire path for each expectation.
|
ResponseSpecification |
ResponseSpecification.body(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
This as special kind of expectation that is mainly useful when you've specified a root path with an argument placeholder.
|
ResponseSpecification |
ResponseSpecification.body(String key,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
Same as
ResponseSpecification.body(String, org.hamcrest.Matcher, Object...) expect that you can pass arguments to the key. |
ResponseSpecification |
ResponseSpecification.content(List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
Deprecated.
|
ResponseSpecification |
ResponseSpecification.content(String path,
List<Argument> arguments,
org.hamcrest.Matcher matcher,
Object... additionalKeyMatcherPairs)
Deprecated.
|
ResponseSpecification |
ResponseSpecification.root(String rootPath,
List<Argument> arguments)
Set the root path with arguments of the response body so that you don't need to write the entire path for each expectation.
|
ResponseSpecification |
ResponseSpecification.rootPath(String rootPath,
List<Argument> arguments)
Deprecated.
Use
ResponseSpecification.root(String, List) instead |
Copyright © 2010–2019. All rights reserved.