Skip to content

Rest Client Integration Tests #34998

Closed as not planned
Closed as not planned
@Eduardo-Malo

Description

@Eduardo-Malo

Hello,

I replaced RestTemplate with RestClient and i had some integration tests with the help of MockRestServiceServer from Spring.

MockRestServiceServer is not compatible with RestClient.

The solution is to use @restclienttest but this is a sliced test and i don´t want this or use OKhttpServer wich is what Spring is using now (https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/test/java/org/springframework/web/client/RestClientIntegrationTests.java) but i don´t wanna add an external dependency outside Spring

I would like to know if the Spring team is planning on release an equivalent to MockRestServiceServer that works with RestClient.

Thank you.

Eduardo Barros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions