org.codehaus.xfire.test
Class XPathAssert

java.lang.Object
  extended by org.codehaus.xfire.test.XPathAssert

public class XPathAssert
extends Object

WebService assertions.

Author:
Dan Diephouse

Constructor Summary
XPathAssert()
           
 
Method Summary
static void assertFault(org.jdom.Content node)
           
static List assertInvalid(String xpath, Object node, Map namespaces)
          Assert that the following XPath query selects no nodes.
static void assertNoFault(org.jdom.Document node)
           
static List assertValid(String xpath, Object node, Map namespaces)
          Assert that the following XPath query selects one or more nodes.
static void assertXPathEquals(String xpath, String value, org.jdom.Document node, Map namespaces)
          Asser that the text of the xpath node retrieved is equal to the value specified.
static org.jdom.xpath.XPath createXPath(String xpathString, Map namespaces)
          Create the specified XPath expression with the namespaces added via addNamespace().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathAssert

public XPathAssert()
Method Detail

assertValid

public static List assertValid(String xpath,
                               Object node,
                               Map namespaces)
                        throws Exception
Assert that the following XPath query selects one or more nodes.

Parameters:
xpath -
Throws:
Exception

assertInvalid

public static List assertInvalid(String xpath,
                                 Object node,
                                 Map namespaces)
                          throws Exception
Assert that the following XPath query selects no nodes.

Parameters:
xpath -
Throws:
Exception

assertXPathEquals

public static void assertXPathEquals(String xpath,
                                     String value,
                                     org.jdom.Document node,
                                     Map namespaces)
                              throws Exception
Asser that the text of the xpath node retrieved is equal to the value specified.

Parameters:
xpath -
value -
node -
Throws:
Exception

assertNoFault

public static void assertNoFault(org.jdom.Document node)
                          throws Exception
Throws:
Exception

assertFault

public static void assertFault(org.jdom.Content node)
                        throws Exception
Throws:
Exception

createXPath

public static org.jdom.xpath.XPath createXPath(String xpathString,
                                               Map namespaces)
                                        throws Exception
Create the specified XPath expression with the namespaces added via addNamespace().

Throws:
Exception


Copyright © 2004-2013. All Rights Reserved.