Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.jxpath.ri.model.dom
Class DOMModelTest  view DOMModelTest download DOMModelTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.jxpath.JXPathTestCase
              extended byorg.apache.commons.jxpath.ri.model.XMLModelTestCase
                  extended byorg.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 $

Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.model.XMLModelTestCase
context
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DOMModelTest(java.lang.String name)
          Construct a new instance of this test case.
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMModelTest

public DOMModelTest(java.lang.String name)
Construct a new instance of this test case.

Method Detail

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)