|
||||||||||
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.OrderByMultiTypeTest
public class OrderByMultiTypeTest
Test cases for order by queries on long properties.
Field Summary | |
---|---|
protected boolean |
checkSQL
If true this repository supports sql queries |
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, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, 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 | |
---|---|
OrderByMultiTypeTest()
|
Method Summary | |
---|---|
protected void |
checkOrder(String[] nodeNames)
Runs queries on the workspace and checks if the ordering is according to the nodeNames . |
protected void |
checkResultOrder(QueryResult result,
String[] nodeNames)
Checks if the node ordering in result is according to
nodeNames . |
protected void |
populate(Calendar[] values)
Populates the workspace with child nodes under testroot with
each node has a calendar value set in property with name
propertyname1 . |
protected void |
populate(double[] values)
Populates the workspace with child nodes under testroot with
each node has a double value set in property with name
propertyname1 . |
protected void |
populate(long[] values)
Populates the workspace with child nodes under testroot with
each node has a long value set in property with name
propertyname1 . |
protected void |
populate(String[] values)
Populates the workspace with child nodes under testroot with
each node has a String value set in property with name
propertyname1 . |
protected void |
setUp()
Set-up the configuration values used for the test. |
void |
testMultipleOrder()
Tests order by queries with a String property and a long property. |
Methods inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest |
---|
checkResult, checkResult, checkResult, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeXPathQuery, toArray |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, 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 |
Field Detail |
---|
protected boolean checkSQL
true
this repository supports sql queries
Constructor Detail |
---|
public OrderByMultiTypeTest()
Method Detail |
---|
public void testMultipleOrder() throws Exception
Exception
protected void setUp() throws Exception
AbstractQueryTest
setUp
in class AbstractQueryTest
Exception
protected void populate(String[] values) throws RepositoryException
testroot
with
each node has a String value set in property with name
propertyname1
.
values
- the String values.
RepositoryException
protected void populate(Calendar[] values) throws RepositoryException
testroot
with
each node has a calendar value set in property with name
propertyname1
.
values
- the calendar values.
RepositoryException
protected void populate(long[] values) throws RepositoryException
testroot
with
each node has a long value set in property with name
propertyname1
.
values
- the long values.
RepositoryException
protected void populate(double[] values) throws RepositoryException
testroot
with
each node has a double value set in property with name
propertyname1
.
values
- the double values.
RepositoryException
protected void checkOrder(String[] nodeNames) throws RepositoryException
nodeNames
.
nodeNames
- the sequence of node names required in the result set.
RepositoryException
protected void checkResultOrder(QueryResult result, String[] nodeNames) throws RepositoryException
result
is according to
nodeNames
.
result
- the query result.nodeNames
- the node names.
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |