Class XpathAssertions
java.lang.Object
org.springframework.test.web.support.AbstractXpathAssertions<RestTestClient.BodyContentSpec>
org.springframework.test.web.servlet.client.XpathAssertions
XPath assertions for the
RestTestClient.- Since:
- 7.0
- Author:
- Rob Worsnop
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractXpathAssertions
AbstractXpathAssertions.CheckedExceptionTask -
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.Methods inherited from class AbstractXpathAssertions
assertWith, doesNotExist, equals, exists, getBodySpec, getCharset, getXpathHelper, hashCode, isEqualTo, isEqualTo, isEqualTo, nodeCount, nodeCount, number, string
-
Method Details
-
getResponseHeaders
Description copied from class:AbstractXpathAssertionsSubclasses must implement this to provide access to response headers.- Specified by:
getResponseHeadersin classAbstractXpathAssertions<RestTestClient.BodyContentSpec>
-
getContent
protected byte[] getContent()Description copied from class:AbstractXpathAssertionsSubclasses must implement this to provide access to the response content.- Specified by:
getContentin classAbstractXpathAssertions<RestTestClient.BodyContentSpec>
-