-
Couldn't load subscription status.
- Fork 38.8k
Closed
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Eric Deandrea opened SPR-16741 and commented
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.
Affects: 5.0.5
Issue Links:
- WebTestClient does not provide Hamcrest Matcher assertions for JSONPath [SPR-16729] #21270 WebTestClient does not provide Hamcrest Matcher assertions for JSONPath
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement