public interface ResponseXPathExpectations
Implementations of this interface are returned by RequestMatchers.xpath(String)
and RequestMatchers.xpath(String, java.util.Map)
, as part of the fluent API. As such, it is not typical to implement this
interface yourself.
RequestMatchers.xpath(String)
,
RequestMatchers.xpath(String, java.util.Map)
Modifier and Type | Method and Description |
---|---|
ResponseMatcher |
doesNotExist()
Expects the XPath expression to not exist.
|
ResponseMatcher |
evaluatesTo(boolean expectedValue)
Expects the XPath expression to evaluate to the given boolean.
|
ResponseMatcher |
evaluatesTo(double expectedValue)
Expects the XPath expression to evaluate to the given double.
|
ResponseMatcher |
evaluatesTo(int expectedValue)
Expects the XPath expression to evaluate to the given integer.
|
ResponseMatcher |
evaluatesTo(String expectedValue)
Expects the XPath expression to evaluate to the given string.
|
ResponseMatcher |
exists()
Expects the XPath expression to exist.
|
ResponseMatcher exists()
ResponseMatcher doesNotExist()
ResponseMatcher evaluatesTo(boolean expectedValue)
expectedValue
- the expected valueResponseMatcher evaluatesTo(int expectedValue)
expectedValue
- the expected valueResponseMatcher evaluatesTo(double expectedValue)
expectedValue
- the expected valueResponseMatcher evaluatesTo(String expectedValue)
expectedValue
- the expected value