public class QueryResultNodeIteratorTest extends AbstractQueryTest
NodeIterator returned by
QueryResult.getNodes().jcrContains, jcrDeref, jcrPath, jcrRoot, jcrScore, qf, qm, qsSQL, qsXPATH, vf, xpathRootisReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, workspaceName| Constructor and Description |
|---|
QueryResultNodeIteratorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Sets up the fixture for test cases.
|
void |
testGetPosition()
Tests the method
NodeIterator.getPosition(). |
void |
testGetPositionEmptyIterator()
Tests the method
NodeIterator.getPosition() on an empty
NodeIterator. |
void |
testGetSize()
Tests if
RangeIterator.getSize() returns the correct
size. |
void |
testNoSuchElementException()
Tests if a
NoSuchElementException is thrown when NodeIterator.nextNode() is called and there are no more nodes
available. |
void |
testSkip()
Tests if
RangeIterator.skip(long) works correctly. |
checkResult, checkResult, checkResult, checkResult, createQuery, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeSqlQuery, executeXPathQuery, isSupportedLanguage, tearDown, toArraycheckSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, runassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toStringprotected void setUp()
throws Exception
setUp in class AbstractQueryTestExceptionpublic void testGetSize()
throws RepositoryException,
NotExecutableException
RangeIterator.getSize() returns the correct
size.NotExecutableException - if getSize() returns -1 (unavailable).RepositoryExceptionpublic void testGetPosition()
throws RepositoryException,
NotExecutableException
NodeIterator.getPosition().public void testGetPositionEmptyIterator()
throws RepositoryException,
NotExecutableException
NodeIterator.getPosition() on an empty
NodeIterator.public void testNoSuchElementException()
throws RepositoryException,
NotExecutableException
NoSuchElementException is thrown when NodeIterator.nextNode() is called and there are no more nodes
available.public void testSkip()
throws RepositoryException,
NotExecutableException
RangeIterator.skip(long) works correctly.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.