Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15286

Support of MockRestServiceServer for WebClient

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.x Backlog
    • Component/s: Test, Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Spring Boot has a @RestClientTest for pure client-side tests. We currently auto-configure MockRestServiceServer and bind any RestTemplate created by the RestTemplateBuilder to it.

      This would be pretty awesome if we could port that feature to WebClient transparently if webflux is on the classpath. That would require that MockRestServiceServer can be configured with a WebClient in addition to a RestTemplate

        Attachments

          Activity

            People

            • Assignee:
              bclozel Brian Clozel
              Reporter:
              snicoll St├ęphane Nicoll
              Last updater:
              Spring Issuemaster
            • Votes:
              15 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 1 week, 3 days ago