public interface RequestXPathExpectations
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 |
---|---|
RequestMatcher |
doesNotExist()
Expects the XPath expression to not exist.
|
RequestMatcher |
evaluatesTo(boolean expectedValue)
Expects the XPath expression to evaluate to the given boolean.
|
RequestMatcher |
evaluatesTo(double expectedValue)
Expects the XPath expression to evaluate to the given double.
|
RequestMatcher |
evaluatesTo(int expectedValue)
Expects the XPath expression to evaluate to the given integer.
|
RequestMatcher |
evaluatesTo(String expectedValue)
Expects the XPath expression to evaluate to the given string.
|
RequestMatcher |
exists()
Expects the XPath expression to exist.
|
RequestMatcher exists()
RequestMatcher doesNotExist()
RequestMatcher evaluatesTo(boolean expectedValue)
expectedValue
- the expected valueRequestMatcher evaluatesTo(int expectedValue)
expectedValue
- the expected valueRequestMatcher evaluatesTo(double expectedValue)
expectedValue
- the expected valueRequestMatcher evaluatesTo(String expectedValue)
expectedValue
- the expected value