Class RestAssuredMockMvcKotlinExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static MockMvcRequestSpecification Given(Function1<MockMvcRequestSpecification, MockMvcRequestSpecification> block) A wrapper around given that starts building the request part of the test.
      final static MockMvcResponse When(MockMvcRequestSpecification $self, Function1<MockMvcRequestAsyncSender, MockMvcResponse> block) A wrapper around MockMvcRequestSpecification.
      final static MockMvcRestAssuredResponseImpl When(Function1<MockMvcRequestSender, MockMvcRestAssuredResponseImpl> block) A wrapper around io.restassured.module.mockmvc.RestAssuredMockMvc.
      final static ValidatableMockMvcResponse Then(MockMvcResponse $self, Function1<ValidatableMockMvcResponse, Unit> block) A wrapper around then that allow configuration of response expectations.
      final static <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 static <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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • Given

         final static MockMvcRequestSpecification Given(Function1<MockMvcRequestSpecification, MockMvcRequestSpecification> block)

        A wrapper around given that starts building the request part of the test.

      • When

         final static MockMvcResponse When(MockMvcRequestSpecification $self, Function1<MockMvcRequestAsyncSender, MockMvcResponse> block)

        A wrapper around MockMvcRequestSpecification.when that configures how the request is dispatched.

      • When

         final static MockMvcRestAssuredResponseImpl When(Function1<MockMvcRequestSender, MockMvcRestAssuredResponseImpl> block)

        A wrapper around io.restassured.module.mockmvc.RestAssuredMockMvc.when that configures how the request is dispatched.

      • Then

         final static ValidatableMockMvcResponse Then(MockMvcResponse $self, Function1<ValidatableMockMvcResponse, Unit> block)

        A wrapper around then that allow configuration of response expectations.

      • Extract

         final static <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

      • Extract

         final static <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