-
public final class RestAssuredMockMvcKotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final MockMvcRequestSpecification
Given(Function1<MockMvcRequestSpecification, MockMvcRequestSpecification> block)
A wrapper around given that starts building the request part of the test. final MockMvcResponse
When(MockMvcRequestSpecification $self, Function1<MockMvcRequestAsyncSender, MockMvcResponse> block)
A wrapper around MockMvcRequestSpecification. final MockMvcRestAssuredResponseImpl
When(Function1<MockMvcRequestSender, MockMvcRestAssuredResponseImpl> block)
A wrapper around io.restassured.module.mockmvc.RestAssuredMockMvc. final ValidatableMockMvcResponse
Then(MockMvcResponse $self, Function1<ValidatableMockMvcResponse, Unit> block)
A wrapper around then that allow configuration of response expectations. final <T extends Any> T
Extract(MockMvcResponse $self, Function1<ExtractableResponse<MockMvcResponse>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response final <T extends Any> T
Extract(ValidatableMockMvcResponse $self, Function1<ExtractableResponse<MockMvcResponse>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response -
-
Method Detail
-
Given
final MockMvcRequestSpecification Given(Function1<MockMvcRequestSpecification, MockMvcRequestSpecification> block)
A wrapper around given that starts building the request part of the test.
-
When
final MockMvcResponse When(MockMvcRequestSpecification $self, Function1<MockMvcRequestAsyncSender, MockMvcResponse> block)
A wrapper around MockMvcRequestSpecification.when that configures how the request is dispatched.
-
When
final MockMvcRestAssuredResponseImpl When(Function1<MockMvcRequestSender, MockMvcRestAssuredResponseImpl> block)
A wrapper around io.restassured.module.mockmvc.RestAssuredMockMvc.when that configures how the request is dispatched.
-
Then
final ValidatableMockMvcResponse Then(MockMvcResponse $self, Function1<ValidatableMockMvcResponse, Unit> block)
A wrapper around then that allow configuration of response expectations.
-
Extract
final <T extends Any> T Extract(MockMvcResponse $self, Function1<ExtractableResponse<MockMvcResponse>, T> block)
A wrapper around ExtractableResponse that allow for extract data out of the response
-
-
-
-