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

Provide XML-based assertions in WebTestClient

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.1 RC1
    • Component/s: Test, Web
    • Labels:
    • Last commented by a User:
      true

      Description

      WebTestClient is missing the ability to perform assertions against XML content like you can do with MockMvc (like with MockMvcResultMatchers.xpath). This is essential for building enterprise applications which have to support both XML & JSON.

      I propose we add similar things to org.springframework.test.web.reactive.server.WebTestClient.BodyContentSpec as well as a new XpathAssertions class (similar to JsonPathAssertions) that ties into org.springframework.test.util.XpathExpectationsHelper.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              edeandrea Eric Deandrea
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 1 week ago