Skip to content

Get MockRestServiceServer by ImportHttpServices group in tests #50903

Description

@ilia1243

@ImportHttpServices internally configures and creates a RestClient, and corresponding RestClient.Builder is seemingly not exposed anywhere. This makes it difficult to distinguish builders in MockServerRestClientCustomizer to access the necessary MockRestServiceServer.

Could you consider adding a new RestClientHttpServiceGroupConfigurer with the similar functionality as in MockServerRestClientCustomizer that will provide a MockRestServiceServer for each HttpServiceGroup?

Spring Boot 4.0.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions