public class RestAssuredKotlinExtensionsKt
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Extract(io.restassured.response.Response $receiver,
kotlin.jvm.functions.Function1<? super io.restassured.response.ExtractableResponse<io.restassured.response.Response>,? extends T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
|
static <T> T |
Extract(io.restassured.response.ValidatableResponse $receiver,
kotlin.jvm.functions.Function1<? super io.restassured.response.ExtractableResponse<io.restassured.response.Response>,? extends T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
|
static io.restassured.specification.RequestSpecification |
Given(kotlin.jvm.functions.Function1<? super io.restassured.specification.RequestSpecification,? extends io.restassured.specification.RequestSpecification> block)
A wrapper around given that starts building the request part of the test.
|
static io.restassured.response.ValidatableResponse |
Then(io.restassured.response.Response $receiver,
kotlin.jvm.functions.Function1<? super io.restassured.response.ValidatableResponse,kotlin.Unit> block)
A wrapper around then that allow configuration of response expectations.
|
static io.restassured.response.Response |
When(io.restassured.specification.RequestSpecification $receiver,
kotlin.jvm.functions.Function1<? super io.restassured.specification.RequestSpecification,? extends io.restassured.response.Response> block)
A wrapper around RequestSpecification.when that configures how the request is dispatched.
|
@NotNull
public static io.restassured.specification.RequestSpecification Given(@NotNull
kotlin.jvm.functions.Function1<? super io.restassured.specification.RequestSpecification,? extends io.restassured.specification.RequestSpecification> block)
A wrapper around given that starts building the request part of the test.
@NotNull
public static io.restassured.response.Response When(@NotNull
io.restassured.specification.RequestSpecification $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super io.restassured.specification.RequestSpecification,? extends io.restassured.response.Response> block)
A wrapper around RequestSpecification.when that configures how the request is dispatched.
@NotNull
public static io.restassured.response.ValidatableResponse Then(@NotNull
io.restassured.response.Response $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super io.restassured.response.ValidatableResponse,kotlin.Unit> block)
A wrapper around then that allow configuration of response expectations.
public static <T> T Extract(@NotNull
io.restassured.response.Response $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super io.restassured.response.ExtractableResponse<io.restassured.response.Response>,? extends T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
public static <T> T Extract(@NotNull
io.restassured.response.ValidatableResponse $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super io.restassured.response.ExtractableResponse<io.restassured.response.Response>,? extends T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response