|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.tree.xpath.TestXPathExpressionEngine
public class TestXPathExpressionEngine
Test class for XPathExpressionEngine.
Constructor Summary | |
---|---|
TestXPathExpressionEngine()
|
Method Summary | |
---|---|
protected void |
checkSelectCalls(int expected)
Checks if the JXPath context's selectNodes() method was called as often as expected. |
void |
setUp()
|
void |
testCreateContext()
Tests if the used JXPathContext is correctly initialized. |
void |
testNodeKeyAttribute()
Tests nodeKey() for an attribute node. |
void |
testNodeKeyForRootChild()
Tests node key() for direct children of the root node. |
void |
testNodeKeyForRootNode()
Tests nodeKey() for the root node. |
void |
testNodeKeyNormal()
Tests a normal call of nodeKey(). |
void |
testPrepareAddAttribute()
Tests adding a new attribute node. |
void |
testPrepareAddAttributePath()
Tests adding a complete path whose final node is an attribute. |
void |
testPrepareAddEmptyKey()
Tests an add operation where the key is null. |
void |
testPrepareAddEmptyPath()
Tests an add operation with an empty path for the new node. |
void |
testPrepareAddInvalidAttributePath()
Tests an add operation with an invalid path: the path contains an attribute in the middle part. |
void |
testPrepareAddInvalidAttributePath2()
Tests an add operation with an invalid path: the path contains an attribute after a slash. |
void |
testPrepareAddInvalidParent()
Tests an add operation with a query that does not return a single node. |
void |
testPrepareAddInvalidPath()
Tests an add operation with an invalid path. |
void |
testPrepareAddInvalidPathMultipleAttributes()
Tests an add operation with an invalid path that contains multiple attribute components. |
void |
testPrepareAddInvalidPathWithSlash()
Tests an add operation with an invalid path that starts with a slash. |
void |
testPrepareAddNode()
Tests adding a single child node. |
void |
testPrepareAddNullKey()
Tests an add operation where the key is null. |
void |
testPrepareAddPath()
Tests adding a complete path. |
void |
testPrepareAddRootAttribute()
Tests adding a new attribute to the root. |
void |
testPrepareAddRootChild()
Tests adding a new node to the root. |
void |
testQueryExpression()
Tests the query() method with a normal expression. |
void |
testQueryWithEmptyKey()
Tests a query with an empty key. |
void |
testQueryWithNullKey()
Tests a query with a null key. |
void |
testQueryWithoutResult()
Tests a query that has no results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestXPathExpressionEngine()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testQueryExpression()
public void testQueryWithoutResult()
public void testQueryWithEmptyKey()
public void testQueryWithNullKey()
public void testCreateContext()
public void testNodeKeyNormal()
public void testNodeKeyAttribute()
public void testNodeKeyForRootNode()
public void testNodeKeyForRootChild()
public void testPrepareAddNode()
public void testPrepareAddAttribute()
public void testPrepareAddPath()
public void testPrepareAddAttributePath()
public void testPrepareAddRootChild()
public void testPrepareAddRootAttribute()
public void testPrepareAddInvalidParent()
public void testPrepareAddEmptyPath()
public void testPrepareAddNullKey()
public void testPrepareAddEmptyKey()
public void testPrepareAddInvalidPath()
public void testPrepareAddInvalidAttributePath()
public void testPrepareAddInvalidAttributePath2()
public void testPrepareAddInvalidPathWithSlash()
public void testPrepareAddInvalidPathMultipleAttributes()
protected void checkSelectCalls(int expected)
expected
- the number of expected calls
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |