java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.jxpath.JXPathTestCase
org.apache.commons.jxpath.ri.model.XMLModelTestCase
org.apache.commons.jxpath.ri.model.dom.DOMModelTest
- All Implemented Interfaces:
- junit.framework.Test
- public class DOMModelTest
- extends org.apache.commons.jxpath.ri.model.XMLModelTestCase
Tests JXPath with DOM
- Version:
- $Revision: 1.13 $ $Date: 2004/03/02 01:32:20 $
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
private void |
appendXMLSignature(java.lang.StringBuffer buffer,
org.w3c.dom.NodeList children,
boolean elements,
boolean attributes,
boolean text,
boolean pi)
|
private void |
appendXMLSignature(java.lang.StringBuffer buffer,
java.lang.Object object,
boolean elements,
boolean attributes,
boolean text,
boolean pi)
|
protected org.apache.commons.jxpath.AbstractFactory |
getAbstractFactory()
|
protected java.lang.String |
getModel()
|
protected java.lang.String |
getXMLSignature(java.lang.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. |
static junit.framework.Test |
suite()
Return the tests included in this test suite. |
void |
testGetNode()
|
| Methods inherited from class org.apache.commons.jxpath.ri.model.XMLModelTestCase |
assertXMLSignature, createContext, createDocumentContainer, setUp, testAxisAncestor, testAxisAncestorOrSelf, testAxisAttribute, testAxisChild, testAxisChildIndexPredicate, testAxisDescendant, testAxisFollowing, testAxisFollowingSibling, testAxisNamespace, testAxisParent, testAxisPrecedingSibling, testAxisSelf, testBooleanFunction, testContainer, testCreatePath, testCreatePathAndSetValue, testDocument, testDocumentOrder, testElementInVariable, testFunctionsLastAndPosition, testID, testLang, testNamespaceMapping, testNodeTypeComment, testNodeTypeProcessingInstruction, testNodeTypeText, testRemovePath, testSetValue, testTypeConversions |
| Methods inherited from class org.apache.commons.jxpath.JXPathTestCase |
assertDocumentOrder, assertXPathCreatePath, assertXPathCreatePathAndSetValue, assertXPathNodeType, assertXPathPointer, assertXPathPointerIterator, assertXPathPointerLenient, assertXPathSetValue, assertXPathSetValue, assertXPathValue, assertXPathValue, assertXPathValueAndPointer, assertXPathValueIterator, assertXPathValueLenient, assertXPathValueType, list, list, list, list, list, list, list, list, set, set, set, set, set |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
DOMModelTest
public DOMModelTest(java.lang.String name)
- Construct a new instance of this test case.
suite
public static junit.framework.Test suite()
- Return the tests included in this test suite.
getModel
protected java.lang.String getModel()
getAbstractFactory
protected org.apache.commons.jxpath.AbstractFactory getAbstractFactory()
testGetNode
public void testGetNode()
getXMLSignature
protected java.lang.String getXMLSignature(java.lang.Object node,
boolean elements,
boolean attributes,
boolean text,
boolean pi)
- Description copied from class:
org.apache.commons.jxpath.ri.model.XMLModelTestCase
- 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.
appendXMLSignature
private void appendXMLSignature(java.lang.StringBuffer buffer,
java.lang.Object object,
boolean elements,
boolean attributes,
boolean text,
boolean pi)
appendXMLSignature
private void appendXMLSignature(java.lang.StringBuffer buffer,
org.w3c.dom.NodeList children,
boolean elements,
boolean attributes,
boolean text,
boolean pi)