Class RestAssuredWebTestClientKotlinExtensionsKt
-
- All Implemented Interfaces:
public final class RestAssuredWebTestClientKotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static WebTestClientRequestSpecificationGiven(Function1<WebTestClientRequestSpecification, WebTestClientRequestSpecification> block)A wrapper around given that starts building the request part of the test. final static WebTestClientResponseWhen(WebTestClientRequestSpecification $self, Function1<WebTestClientRequestSender, WebTestClientResponse> block)A wrapper around WebTestClientRequestSpecification. final static ValidatableWebTestClientResponseThen(WebTestClientResponse $self, Function1<ValidatableWebTestClientResponse, Unit> block)A wrapper around then that allow configuration of response expectations. final static <T extends Any> TExtract(WebTestClientResponse $self, Function1<ExtractableResponse<WebTestClientResponse>, T> block)A wrapper around ExtractableResponse that allow for extract data out of the response final static <T extends Any> TExtract(ValidatableWebTestClientResponse $self, Function1<ExtractableResponse<WebTestClientResponse>, T> block)A wrapper around ExtractableResponse that allow for extract data out of the response -
-
Method Detail
-
Given
final static WebTestClientRequestSpecification Given(Function1<WebTestClientRequestSpecification, WebTestClientRequestSpecification> block)
A wrapper around given that starts building the request part of the test.
-
When
final static WebTestClientResponse When(WebTestClientRequestSpecification $self, Function1<WebTestClientRequestSender, WebTestClientResponse> block)
A wrapper around WebTestClientRequestSpecification.`when` that configures how the request is dispatched.
-
Then
final static ValidatableWebTestClientResponse Then(WebTestClientResponse $self, Function1<ValidatableWebTestClientResponse, Unit> block)
A wrapper around then that allow configuration of response expectations.
-
Extract
final static <T extends Any> T Extract(WebTestClientResponse $self, Function1<ExtractableResponse<WebTestClientResponse>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
-
-
-
-