Spring Web Services Framework

org.springframework.ws.test.support.matcher
Class XPathExpectationsHelper

java.lang.Object
  extended by org.springframework.ws.test.support.matcher.XPathExpectationsHelper

public class XPathExpectationsHelper
extends Object

Helper class for dealing with XPath expectations.

Since:
2.0
Author:
Lukas Krecan, Arjen Poutsma

Constructor Summary
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.
 
Method Summary
 WebServiceMessageMatcher doesNotExist()
           
 WebServiceMessageMatcher evaluatesTo(boolean expectedValue)
           
 WebServiceMessageMatcher evaluatesTo(double expectedValue)
           
 WebServiceMessageMatcher evaluatesTo(int expectedValue)
           
 WebServiceMessageMatcher evaluatesTo(String expectedValue)
           
 WebServiceMessageMatcher exists()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathExpectationsHelper

public XPathExpectationsHelper(String expression)
Creates a new instance of the XPathExpectationsSupport with the given XPath expression.

Parameters:
expression - the XPath expression

XPathExpectationsHelper

public XPathExpectationsHelper(String expression,
                               Map<String,String> namespaces)
Creates a new instance of the XPathExpectationsSupport with the given XPath expression and namespaces.

Parameters:
expression - the XPath expression
namespaces - the namespaces, can be empty or null
Method Detail

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(String expectedValue)

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.