|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.query.AbstractQueryTest
org.apache.jackrabbit.test.api.query.AbstractQueryLevel2Test
public abstract class AbstractQueryLevel2Test
Implements common setup methods for level 2 queries.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest |
|---|
jcrContains, jcrDeref, jcrPath, jcrRoot, jcrScore |
| Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
|---|
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName |
| Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
|---|
log |
| Constructor Summary | |
|---|---|
AbstractQueryLevel2Test()
|
|
| Method Summary | |
|---|---|
protected void |
checkValue(NodeIterator itr,
java.lang.String propertyName,
java.lang.String expectedValue)
Checks if all nodes in itr have a property with name
propertyName and have the expectedValue. |
protected void |
checkValue(RowIterator itr,
java.lang.String propertyName,
java.lang.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. |
| Methods inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest |
|---|
checkResult, checkResult, checkResult, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeXPathQuery, setUp, toArray |
| Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
|---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getJcrValue, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run, tearDown |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, runBare, runTest, setName, 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 |
|---|
public AbstractQueryLevel2Test()
| Method Detail |
|---|
protected 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.
RepositoryException
protected 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.
RepositoryException
protected 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.
RepositoryException
NotExecutableException
protected void checkValue(RowIterator itr,
java.lang.String propertyName,
java.lang.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 found
RepositoryException
protected void checkValue(NodeIterator itr,
java.lang.String propertyName,
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||