org.springframework.ws.test.support.matcher
Class XPathExpectationsHelper
java.lang.Object
org.springframework.ws.test.support.matcher.XPathExpectationsHelper
public class XPathExpectationsHelper
- extends java.lang.Object
Helper class for dealing with XPath expectations.
- Since:
- 2.0
- Author:
- Lukas Krecan, Arjen Poutsma
|
Constructor Summary |
XPathExpectationsHelper(java.lang.String expression)
Creates a new instance of the XPathExpectationsSupport with the given XPath expression. |
XPathExpectationsHelper(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Creates a new instance of the XPathExpectationsSupport with the given XPath expression and namespaces. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathExpectationsHelper
public XPathExpectationsHelper(java.lang.String expression)
- Creates a new instance of the
XPathExpectationsSupport with the given XPath expression.
- Parameters:
expression - the XPath expression
XPathExpectationsHelper
public XPathExpectationsHelper(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces)
- Creates a new instance of the
XPathExpectationsSupport with the given XPath expression and namespaces.
- Parameters:
expression - the XPath expressionnamespaces - the namespaces, can be empty or null
exists
public WebServiceMessageMatcher exists()
doesNotExist
public WebServiceMessageMatcher doesNotExist()
evaluatesTo
public WebServiceMessageMatcher evaluatesTo(boolean expectedValue)
evaluatesTo
public WebServiceMessageMatcher evaluatesTo(int expectedValue)
evaluatesTo
public WebServiceMessageMatcher evaluatesTo(double expectedValue)
evaluatesTo
public WebServiceMessageMatcher evaluatesTo(java.lang.String expectedValue)
Copyright © 2011. All Rights Reserved.