| org.apache.commons.jxpath.JXPathTestCase org.apache.commons.jxpath.ri.model.XMLModelTestCase
All known Subclasses: org.apache.commons.jxpath.ri.model.dom.DOMModelTest, org.apache.commons.jxpath.ri.model.jdom.JDOMModelTest,
XMLModelTestCase | abstract public class XMLModelTestCase extends JXPathTestCase (Code) | | Abstract superclass for pure XPath 1.0. Subclasses
apply the same XPaths to contexts using different models:
DOM, JDOM etc.
author: Dmitri Plotnikov version: $Revision: 1.23 $ $Date: 2004/06/30 00:29:13 $ |
Method Summary | |
protected void | assertXMLSignature(JXPathContext context, String path, String signature, boolean elements, boolean attributes, boolean text, boolean pi) | protected JXPathContext | createContext() | protected DocumentContainer | createDocumentContainer() | abstract protected AbstractFactory | getAbstractFactory() | abstract protected String | getModel() | abstract protected String | getXMLSignature(Object node, boolean elements, boolean attributes, boolean text, boolean pi) An XML signature is used to determine if we have the right result
after a modification of XML by JXPath. | public void | setUp() | public void | testAxisAncestor() | public void | testAxisAncestorOrSelf() | public void | testAxisAttribute() | public void | testAxisChild() | public void | testAxisChildIndexPredicate() | public void | testAxisDescendant() | public void | testAxisFollowing() | public void | testAxisFollowingSibling() | public void | testAxisNamespace() | public void | testAxisParent() | public void | testAxisPrecedingSibling() | public void | testAxisSelf() | public void | testBooleanFunction() | public void | testContainer() | public void | testCreatePath() | public void | testCreatePathAndSetValue() | public void | testDocument() | public void | testDocumentOrder() | public void | testElementInVariable() | public void | testFunctionsLastAndPosition() | public void | testID() | public void | testLang() | public void | testNamespaceMapping() | public void | testNodeTypeComment() | public void | testNodeTypeProcessingInstruction() | public void | testNodeTypeText() | public void | testRemovePath() | public void | testSetValue() | public void | testTypeConversions() |
XMLModelTestCase | public XMLModelTestCase(String name)(Code) | | Construct a new instance of this test case.
Parameters: name - Name of the test case |
assertXMLSignature | protected void assertXMLSignature(JXPathContext context, String path, String signature, boolean elements, boolean attributes, boolean text, boolean pi)(Code) | | |
getXMLSignature | abstract protected String getXMLSignature(Object node, boolean elements, boolean attributes, boolean text, boolean pi)(Code) | | An XML signature is used to determine if we have the right result
after a modification of XML by JXPath. It is basically a piece
of simplified XML.
|
setUp | public void setUp()(Code) | | |
testAxisAncestor | public void testAxisAncestor()(Code) | | |
testAxisAncestorOrSelf | public void testAxisAncestorOrSelf()(Code) | | |
testAxisAttribute | public void testAxisAttribute()(Code) | | |
testAxisChild | public void testAxisChild()(Code) | | |
testAxisChildIndexPredicate | public void testAxisChildIndexPredicate()(Code) | | |
testAxisDescendant | public void testAxisDescendant()(Code) | | |
testAxisFollowing | public void testAxisFollowing()(Code) | | |
testAxisFollowingSibling | public void testAxisFollowingSibling()(Code) | | |
testAxisNamespace | public void testAxisNamespace()(Code) | | |
testAxisParent | public void testAxisParent()(Code) | | |
testAxisPrecedingSibling | public void testAxisPrecedingSibling()(Code) | | |
testAxisSelf | public void testAxisSelf()(Code) | | |
testBooleanFunction | public void testBooleanFunction()(Code) | | |
testContainer | public void testContainer()(Code) | | |
testCreatePath | public void testCreatePath()(Code) | | Test JXPathContext.createPath() with various arguments
|
testCreatePathAndSetValue | public void testCreatePathAndSetValue()(Code) | | Test JXPath.createPathAndSetValue() with various arguments
|
testDocument | public void testDocument()(Code) | | |
testDocumentOrder | public void testDocumentOrder()(Code) | | |
testElementInVariable | public void testElementInVariable()(Code) | | |
testFunctionsLastAndPosition | public void testFunctionsLastAndPosition()(Code) | | |
testID | public void testID()(Code) | | |
testLang | public void testLang()(Code) | | |
testNamespaceMapping | public void testNamespaceMapping()(Code) | | |
testNodeTypeComment | public void testNodeTypeComment()(Code) | | |
testNodeTypeProcessingInstruction | public void testNodeTypeProcessingInstruction()(Code) | | |
testNodeTypeText | public void testNodeTypeText()(Code) | | |
testRemovePath | public void testRemovePath()(Code) | | Test JXPathContext.removePath() with various arguments
|
testSetValue | public void testSetValue()(Code) | | |
testTypeConversions | public void testTypeConversions()(Code) | | |
Methods inherited from org.apache.commons.jxpath.JXPathTestCase | protected void assertDocumentOrder(JXPathContext context, String path1, String path2, int expected)(Code)(Java Doc) protected void assertXPathCreatePath(JXPathContext ctx, String xpath, Object expectedValue, String expectedPath)(Code)(Java Doc) protected void assertXPathCreatePathAndSetValue(JXPathContext ctx, String xpath, Object value, String expectedPath)(Code)(Java Doc) protected void assertXPathNodeType(JXPathContext ctx, String xpath, Class clazz)(Code)(Java Doc) protected void assertXPathPointer(JXPathContext ctx, String xpath, String expected)(Code)(Java Doc) protected void assertXPathPointerIterator(JXPathContext ctx, String xpath, Collection expected)(Code)(Java Doc) protected void assertXPathPointerLenient(JXPathContext ctx, String xpath, String expected)(Code)(Java Doc) protected void assertXPathSetValue(JXPathContext ctx, String xpath, Object value)(Code)(Java Doc) protected void assertXPathSetValue(JXPathContext ctx, String xpath, Object value, Object expected)(Code)(Java Doc) protected void assertXPathValue(JXPathContext ctx, String xpath, Object expected)(Code)(Java Doc) protected void assertXPathValue(JXPathContext ctx, String xpath, Object expected, Class resultType)(Code)(Java Doc) protected void assertXPathValueAndPointer(JXPathContext ctx, String xpath, Object expectedValue, String expectedPointer)(Code)(Java Doc) protected void assertXPathValueIterator(JXPathContext ctx, String xpath, Collection expected)(Code)(Java Doc) protected void assertXPathValueLenient(JXPathContext ctx, String xpath, Object expected)(Code)(Java Doc) protected void assertXPathValueType(JXPathContext ctx, String xpath, Class clazz)(Code)(Java Doc) protected static List list()(Code)(Java Doc) protected static List list(Object o1)(Code)(Java Doc) protected static List list(Object o1, Object o2)(Code)(Java Doc) protected static List list(Object o1, Object o2, Object o3)(Code)(Java Doc) protected static List list(Object o1, Object o2, Object o3, Object o4)(Code)(Java Doc) protected static List list(Object o1, Object o2, Object o3, Object o4, Object o5)(Code)(Java Doc) protected static List list(Object o1, Object o2, Object o3, Object o4, Object o5, Object o6)(Code)(Java Doc) protected static List list(Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7)(Code)(Java Doc) protected static Set set(Object o1, Object o2, Object o3)(Code)(Java Doc) protected static Set set(Object o1, Object o2, Object o3, Object o4)(Code)(Java Doc) protected static Set set(Object o1, Object o2, Object o3, Object o4, Object o5)(Code)(Java Doc) protected static Set set(Object o1, Object o2, Object o3, Object o4, Object o5, Object o6)(Code)(Java Doc) protected static Set set(Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7)(Code)(Java Doc)
|
|
|