Method Summary |
|
protected void | checkSelectCalls(int expected) Checks if the JXPath context's selectNodes() method was called as often
as expected. |
protected void | setUp() |
public void | testCreateContext() Tests if the used JXPathContext is correctly initialized. |
public void | testNodeKeyAttribute() Tests nodeKey() for an attribute node. |
public void | testNodeKeyForRootChild() Tests node key() for direct children of the root node. |
public void | testNodeKeyForRootNode() Tests nodeKey() for the root node. |
public void | testNodeKeyNormal() Tests a normal call of nodeKey(). |
public void | testPrepareAddAttribute() Tests adding a new attribute node. |
public void | testPrepareAddAttributePath() Tests adding a complete path whose final node is an attribute. |
public void | testPrepareAddEmptyKey() Tests an add operation where the key is null. |
public void | testPrepareAddEmptyPath() Tests an add operation with an empty path for the new node. |
public void | testPrepareAddInvalidAttributePath() Tests an add operation with an invalid path: the path contains an
attribute in the middle part. |
public void | testPrepareAddInvalidAttributePath2() Tests an add operation with an invalid path: the path contains an
attribute after a slash. |
public void | testPrepareAddInvalidFormat() Tests an add operation where the passed in key has an invalid format: it
does not contain a whitspace. |
public void | testPrepareAddInvalidParent() Tests an add operation with a query that does not return a single node. |
public void | testPrepareAddInvalidPath() Tests an add operation with an invalid path. |
public void | testPrepareAddInvalidPathMultipleAttributes() Tests an add operation with an invalid path that contains multiple
attribute components. |
public void | testPrepareAddInvalidPathWithSlash() Tests an add operation with an invalid path that starts with a slash. |
public void | testPrepareAddNode() Tests adding a single child node. |
public void | testPrepareAddNullKey() Tests an add operation where the key is null. |
public void | testPrepareAddPath() Tests adding a complete path. |
public void | testPrepareAddRootAttribute() Tests adding a new attribute to the root. |
public void | testPrepareAddRootChild() Tests adding a new node to the root. |
public void | testQueryExpression() Tests the query() method with a normal expression. |
public void | testQueryWithEmptyKey() Tests a query with an empty key. |
public void | testQueryWithNullKey() Tests a query with a null key. |
public void | testQueryWithoutResult() Tests a query that has no results. |