-
public final class RestAssuredKotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final RequestSpecification
Given(Function1<RequestSpecification, RequestSpecification> block)
A wrapper around given that starts building the request part of the test. final Response
When(RequestSpecification $self, Function1<RequestSpecification, Response> block)
A wrapper around RequestSpecification.when that configures how the request is dispatched. final Response
When(Function1<RequestSender, Response> block)
A wrapper around io.restassured.RestAssured.when that configures how the request is dispatched. final ValidatableResponse
Then(Response $self, Function1<ValidatableResponse, Unit> block)
A wrapper around then that allow configuration of response expectations. final <T extends Any> T
Extract(Response $self, Function1<ExtractableResponse<Response>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response final <T extends Any> T
Extract(ValidatableResponse $self, Function1<ExtractableResponse<Response>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response -
-
Method Detail
-
Given
final RequestSpecification Given(Function1<RequestSpecification, RequestSpecification> block)
A wrapper around given that starts building the request part of the test.
-
When
final Response When(RequestSpecification $self, Function1<RequestSpecification, Response> block)
A wrapper around RequestSpecification.when that configures how the request is dispatched.
-
When
final Response When(Function1<RequestSender, Response> block)
A wrapper around io.restassured.RestAssured.when that configures how the request is dispatched.
-
Then
final ValidatableResponse Then(Response $self, Function1<ValidatableResponse, Unit> block)
A wrapper around then that allow configuration of response expectations.
-
Extract
final <T extends Any> T Extract(Response $self, Function1<ExtractableResponse<Response>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
-
-
-
-