Class XpathAssertions
java.lang.Object
org.springframework.test.web.support.AbstractXpathAssertions<WebTestClient.BodyContentSpec>
org.springframework.test.web.reactive.server.XpathAssertions
XPath assertions for the
WebTestClient
.- Since:
- 5.1
- Author:
- Eric Deandrea, Rossen Stoyanchev, Rob Worsnop
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
Subclasses must implement this to provide access to the response content.protected Optional
<HttpHeaders> Subclasses must implement this to provide access to response headers.
-
Method Details
-
getResponseHeaders
Description copied from class:AbstractXpathAssertions
Subclasses must implement this to provide access to response headers.- Specified by:
getResponseHeaders
in classAbstractXpathAssertions<WebTestClient.BodyContentSpec>
-
getContent
protected byte[] getContent()Description copied from class:AbstractXpathAssertions
Subclasses must implement this to provide access to the response content.- Specified by:
getContent
in classAbstractXpathAssertions<WebTestClient.BodyContentSpec>
-