public class OrderByLowerCaseTest extends AbstractQueryTest
OrderByLowerCaseTest contains test cases for order by queries
on lower cased property values.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkSQL
If
true this repository supports sql queries |
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, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, workspaceName| Constructor and Description |
|---|
OrderByLowerCaseTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOrder(String[] nodeNames)
Runs queries on the workspace and checks if the ordering is according
to the
nodeNames. |
protected void |
checkResultOrder(javax.jcr.query.QueryResult result,
String[] nodeNames)
Checks if the node ordering in
result is according to
nodeNames. |
protected javax.jcr.query.qom.DynamicOperand |
createOrderingOperand() |
protected javax.jcr.query.qom.QueryObjectModel |
createQOM(boolean ascending) |
protected String |
createSQL() |
protected String |
createXPath() |
protected void |
populate(BigDecimal[] values)
Populates the workspace with child nodes under
testroot with
each node has a decimal value set in property with name
propertyname1. |
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 |
populate(String[] values,
int type)
Populates the workspace with child nodes under
testroot with
each node has a value set in property with name
propertyname1. |
protected void |
setUp()
Set-up the configuration values used for the test.
|
void |
testLowerCase() |
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, toStringpublic void testLowerCase()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected javax.jcr.query.qom.DynamicOperand createOrderingOperand()
throws javax.jcr.RepositoryException
createQOM(boolean).javax.jcr.RepositoryException - if an error occurs.protected String createSQL()
null if SQL is not supported.protected String createXPath() throws javax.jcr.RepositoryException
null is XPath is not supported.javax.jcr.RepositoryException - if an error occurs.protected void setUp()
throws Exception
AbstractQueryTestsetUp in class AbstractQueryTestExceptionprotected void populate(String[] values) throws javax.jcr.RepositoryException
testroot with
each node has a String value set in property with name
propertyname1.values - the String values.javax.jcr.RepositoryExceptionprotected void populate(String[] values, int type) throws javax.jcr.RepositoryException
testroot with
each node has a value set in property with name
propertyname1. The actual value is created by using the
sessions value factory and the given type.values - the String values.type - a JCR property type.javax.jcr.RepositoryExceptionprotected void populate(Calendar[] values) throws javax.jcr.RepositoryException
testroot with
each node has a calendar value set in property with name
propertyname1.values - the calendar values.javax.jcr.RepositoryExceptionprotected void populate(long[] values)
throws javax.jcr.RepositoryException
testroot with
each node has a long value set in property with name
propertyname1.values - the long values.javax.jcr.RepositoryExceptionprotected void populate(double[] values)
throws javax.jcr.RepositoryException
testroot with
each node has a double value set in property with name
propertyname1.values - the double values.javax.jcr.RepositoryExceptionprotected void populate(BigDecimal[] values) throws javax.jcr.RepositoryException
testroot with
each node has a decimal value set in property with name
propertyname1.values - the decimal values.javax.jcr.RepositoryExceptionprotected void checkOrder(String[] nodeNames) throws javax.jcr.RepositoryException
nodeNames.nodeNames - the sequence of node names required in the result set.javax.jcr.RepositoryExceptionprotected void checkResultOrder(javax.jcr.query.QueryResult result,
String[] nodeNames)
throws javax.jcr.RepositoryException
result is according to
nodeNames.result - the query result.nodeNames - the node names.javax.jcr.RepositoryExceptionprotected javax.jcr.query.qom.QueryObjectModel createQOM(boolean ascending)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if an error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.