|
||||||||||
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.OrderByDecimalTest
public class OrderByDecimalTest
OrderByDecimalTest
tests order by queries with decimal 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, qf, qm, vf, xpathRoot |
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
isReadOnly, jcrBaseVersion, jcrCopiedFrom, 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, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
OrderByDecimalTest()
|
Method Summary | |
---|---|
protected void |
checkOrder(java.lang.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,
java.lang.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 java.lang.String |
createSQL()
|
protected java.lang.String |
createXPath()
|
protected void |
populate(java.math.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(java.util.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(java.lang.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(java.lang.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 |
testDecimal()
|
Methods inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest |
---|
checkResult, checkResult, checkResult, createQuery, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeXPathQuery, isSupportedLanguage, tearDown, toArray |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run |
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, failNotEquals, failNotSame, failSame, format |
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 OrderByDecimalTest()
Method Detail |
---|
public void testDecimal() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void setUp() throws java.lang.Exception
AbstractQueryTest
setUp
in class AbstractQueryTest
java.lang.Exception
protected void populate(java.lang.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.RepositoryException
protected void populate(java.lang.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.RepositoryException
protected void populate(java.util.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.RepositoryException
protected 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.RepositoryException
protected 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.RepositoryException
protected void populate(java.math.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.RepositoryException
protected void checkOrder(java.lang.String[] nodeNames) throws javax.jcr.RepositoryException
nodeNames
.
nodeNames
- the sequence of node names required in the result set.
javax.jcr.RepositoryException
protected void checkResultOrder(javax.jcr.query.QueryResult result, java.lang.String[] nodeNames) throws javax.jcr.RepositoryException
result
is according to
nodeNames
.
result
- the query result.nodeNames
- the node names.
javax.jcr.RepositoryException
protected javax.jcr.query.qom.QueryObjectModel createQOM(boolean ascending) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occurs.protected javax.jcr.query.qom.DynamicOperand createOrderingOperand() throws javax.jcr.RepositoryException
createQOM(boolean)
.
javax.jcr.RepositoryException
- if an error occurs.protected java.lang.String createSQL()
null
if SQL is not supported.protected java.lang.String createXPath() throws javax.jcr.RepositoryException
null
is XPath is not supported.
javax.jcr.RepositoryException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |