public class XPathExpectationsHelper extends Object
Constructor and Description |
---|
XPathExpectationsHelper(String expression)
Creates a new instance of the
XPathExpectationsSupport with the given XPath expression. |
XPathExpectationsHelper(String expression,
Map<String,String> namespaces)
Creates a new instance of the
XPathExpectationsSupport with the given XPath expression and namespaces. |
Modifier and Type | Method and Description |
---|---|
WebServiceMessageMatcher |
doesNotExist() |
WebServiceMessageMatcher |
evaluatesTo(boolean expectedValue) |
WebServiceMessageMatcher |
evaluatesTo(double expectedValue) |
WebServiceMessageMatcher |
evaluatesTo(int expectedValue) |
WebServiceMessageMatcher |
evaluatesTo(String expectedValue) |
WebServiceMessageMatcher |
exists() |
public XPathExpectationsHelper(String expression)
XPathExpectationsSupport
with the given XPath expression.expression
- the XPath expressionpublic XPathExpectationsHelper(String expression, Map<String,String> namespaces)
XPathExpectationsSupport
with the given XPath expression and namespaces.expression
- the XPath expressionnamespaces
- the namespaces, can be empty or null
public WebServiceMessageMatcher exists()
public WebServiceMessageMatcher doesNotExist()
public WebServiceMessageMatcher evaluatesTo(boolean expectedValue)
public WebServiceMessageMatcher evaluatesTo(int expectedValue)
public WebServiceMessageMatcher evaluatesTo(double expectedValue)
public WebServiceMessageMatcher evaluatesTo(String expectedValue)