public abstract class AbstractQueryLevel2Test extends AbstractQueryTest
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 |
|---|
AbstractQueryLevel2Test() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValue(NodeIterator itr,
String propertyName,
String expectedValue)
Checks if all nodes in
itr have a property with name
propertyName and have the expectedValue. |
protected void |
checkValue(RowIterator itr,
String propertyName,
String expectedValue)
Tests if all results contain only the searched value is contained in the
selected property
|
protected void |
setUpFullTextTest()
Creates two nodes with name
AbstractJCRTest.nodeName1 and AbstractJCRTest.nodeName2
with nodetype AbstractJCRTest.testNodeType. |
protected void |
setUpMultiValueTest()
Creates three nodes with names:
AbstractJCRTest.nodeName1, AbstractJCRTest.nodeName2
and AbstractJCRTest.nodeName3. |
protected void |
setUpRangeTest()
Creates three nodes with names:
AbstractJCRTest.nodeName1, AbstractJCRTest.nodeName2
and AbstractJCRTest.nodeName3. |
checkResult, checkResult, checkResult, checkResult, createQuery, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeSqlQuery, executeXPathQuery, isSupportedLanguage, setUp, 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 setUpFullTextTest()
throws RepositoryException
AbstractJCRTest.nodeName1 and AbstractJCRTest.nodeName2
with nodetype AbstractJCRTest.testNodeType. The node type must allow a String
property with name AbstractJCRTest.propertyName1 which is fulltext indexed.RepositoryExceptionprotected void setUpRangeTest()
throws RepositoryException
AbstractJCRTest.nodeName1, AbstractJCRTest.nodeName2
and AbstractJCRTest.nodeName3. All nodes are of node type AbstractJCRTest.testNodeType.
the node type must allow a String property with name AbstractJCRTest.propertyName1.RepositoryExceptionprotected void setUpMultiValueTest()
throws RepositoryException,
NotExecutableException
AbstractJCRTest.nodeName1, AbstractJCRTest.nodeName2
and AbstractJCRTest.nodeName3. All nodes are of node type AbstractJCRTest.testNodeType.
the node type must allow a String property with name AbstractJCRTest.propertyName1 and a multi valued String property with name AbstractJCRTest.propertyName2.
If the node type does not support multi values for AbstractJCRTest.propertyName2
a NotExecutableException is thrown.
protected void checkValue(RowIterator itr, String propertyName, String expectedValue) throws RepositoryException
itr - rows of the query result.propertyName - selected property, that should contain the value.expectedValue - the value that is expected to be foundRepositoryExceptionprotected void checkValue(NodeIterator itr, String propertyName, String expectedValue) throws RepositoryException
itr have a property with name
propertyName and have the expectedValue.itr - the nodes to check.propertyName - the name of the property.expectedValue - the exected value of the property.RepositoryException - if an error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.