Class QueryObjectModelFactoryTest
- java.lang.Object
-
- junit.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.qom.AbstractQOMTest
-
- org.apache.jackrabbit.test.api.query.qom.QueryObjectModelFactoryTest
-
- All Implemented Interfaces:
junit.framework.Test
public class QueryObjectModelFactoryTest extends AbstractQOMTest
QueryObjectModelFactoryTest
tests all methods on theQueryObjectModelFactory
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.test.api.query.qom.AbstractQOMTest
AbstractQOMTest.Callable
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest
jcrContains, jcrDeref, jcrPath, jcrRoot, jcrScore, qf, qm, qsSQL, qsXPATH, 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, 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 Summary
Constructors Constructor Description QueryObjectModelFactoryTest()
-
Method Summary
-
Methods inherited from class org.apache.jackrabbit.test.api.query.qom.AbstractQOMTest
bindVariableValue, checkQOM, checkQOM, checkResult, checkResultOrder, checkResultOrder, forQOMandSQL2, getPath
-
Methods inherited from class org.apache.jackrabbit.test.api.query.AbstractQueryTest
checkResult, checkResult, checkResult, checkResult, createQuery, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeSqlQuery, executeXPathQuery, isSupportedLanguage, setUp, tearDown, toArray
-
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
testAnd
public void testAnd() throws RepositoryException
Test case forQueryObjectModelFactory.and(Constraint, Constraint)
- Throws:
RepositoryException
-
testOrderingAscending
public void testOrderingAscending() throws RepositoryException
Test case forQueryObjectModelFactory.ascending(DynamicOperand)
- Throws:
RepositoryException
-
testBindVariableValue
public void testBindVariableValue() throws RepositoryException
Test case forQueryObjectModelFactory.bindVariable(String)
- Throws:
RepositoryException
-
testChildNode
public void testChildNode() throws RepositoryException
Test case forQueryObjectModelFactory.childNode(String, String)
- Throws:
RepositoryException
-
testChildNodeWithSelector
public void testChildNodeWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.childNode(String, String)
- Throws:
RepositoryException
-
testChildNodeJoinCondition
public void testChildNodeJoinCondition() throws RepositoryException
- Throws:
RepositoryException
-
testColumn
public void testColumn() throws RepositoryException
Test case forQueryObjectModelFactory.column(String, String, String)
- Throws:
RepositoryException
-
testColumnAllProperties
public void testColumnAllProperties() throws RepositoryException
Test case forQueryObjectModelFactory.column(String, String, String)
- Throws:
RepositoryException
-
testColumnWithColumnName
public void testColumnWithColumnName() throws RepositoryException
Test case forQueryObjectModelFactory.column(String, String, String)
- Throws:
RepositoryException
-
testColumnWithSelector
public void testColumnWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.column(String, String, String)
- Throws:
RepositoryException
-
testComparison
public void testComparison() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQuery
public void testCreateQuery() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryWithConstraint
public void testCreateQueryWithConstraint() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryWithConstraintAndOrdering
public void testCreateQueryWithConstraintAndOrdering() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryWithConstraintOrderingAndColumn
public void testCreateQueryWithConstraintOrderingAndColumn() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryFromSource
public void testCreateQueryFromSource() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryFromSourceWithConstraint
public void testCreateQueryFromSourceWithConstraint() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryFromSourceWithConstraintAndOrdering
public void testCreateQueryFromSourceWithConstraintAndOrdering() throws RepositoryException
- Throws:
RepositoryException
-
testCreateQueryFromSourceWithConstraintOrderingAndColumn
public void testCreateQueryFromSourceWithConstraintOrderingAndColumn() throws RepositoryException
- Throws:
RepositoryException
-
testDescendantNode
public void testDescendantNode() throws RepositoryException
Test case forQueryObjectModelFactory.descendantNode(String, String)
- Throws:
RepositoryException
-
testDescendantNodeWithSelector
public void testDescendantNodeWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.descendantNode(String, String)
- Throws:
RepositoryException
-
testDescendantNodeJoinCondition
public void testDescendantNodeJoinCondition() throws RepositoryException
- Throws:
RepositoryException
-
testOrderingDescending
public void testOrderingDescending() throws RepositoryException
Test case forQueryObjectModelFactory.descending(DynamicOperand)
- Throws:
RepositoryException
-
testEquiJoinCondition
public void testEquiJoinCondition() throws RepositoryException
- Throws:
RepositoryException
-
testFullTextSearch
public void testFullTextSearch() throws RepositoryException
- Throws:
RepositoryException
-
testFullTextSearchAllProperties
public void testFullTextSearchAllProperties() throws RepositoryException
- Throws:
RepositoryException
-
testFullTextSearchWithBindVariableValue
public void testFullTextSearchWithBindVariableValue() throws RepositoryException
- Throws:
RepositoryException
-
testFullTextSearchScore
public void testFullTextSearchScore() throws RepositoryException
Test case forQueryObjectModelFactory.fullTextSearchScore(String)
- Throws:
RepositoryException
-
testFullTextSearchScoreWithSelector
public void testFullTextSearchScoreWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.fullTextSearchScore(String)
- Throws:
RepositoryException
-
testJoin
public void testJoin() throws RepositoryException
- Throws:
RepositoryException
-
testLength
public void testLength() throws RepositoryException
Test case forQueryObjectModelFactory.length(PropertyValue)
- Throws:
RepositoryException
-
testLiteral
public void testLiteral() throws RepositoryException
Test case forQueryObjectModelFactory.literal(Value)
- Throws:
RepositoryException
-
testLowerCase
public void testLowerCase() throws RepositoryException
Test case forQueryObjectModelFactory.lowerCase(DynamicOperand)
- Throws:
RepositoryException
-
testNodeLocalName
public void testNodeLocalName() throws RepositoryException
Test case forQueryObjectModelFactory.nodeLocalName(String)
- Throws:
RepositoryException
-
testNodeLocalNameWithSelector
public void testNodeLocalNameWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.nodeLocalName(String)
- Throws:
RepositoryException
-
testNodeName
public void testNodeName() throws RepositoryException
Test case forQueryObjectModelFactory.nodeName(String)
- Throws:
RepositoryException
-
testNodeNameWithSelector
public void testNodeNameWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.nodeName(String)
- Throws:
RepositoryException
-
testNot
public void testNot() throws RepositoryException
Test case forQueryObjectModelFactory.not(Constraint)
- Throws:
RepositoryException
-
testOr
public void testOr() throws RepositoryException
Test case forQueryObjectModelFactory.or(Constraint, Constraint)
- Throws:
RepositoryException
-
testPropertyExistence
public void testPropertyExistence() throws RepositoryException
- Throws:
RepositoryException
-
testPropertyExistenceWithSelector
public void testPropertyExistenceWithSelector() throws RepositoryException
- Throws:
RepositoryException
-
testPropertyValue
public void testPropertyValue() throws RepositoryException
Test case forQueryObjectModelFactory.propertyValue(String, String)
- Throws:
RepositoryException
-
testPropertyValueWithSelector
public void testPropertyValueWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.propertyValue(String, String)
- Throws:
RepositoryException
-
testSameNode
public void testSameNode() throws RepositoryException
Test case forQueryObjectModelFactory.sameNode(String, String)
- Throws:
RepositoryException
-
testSameNodeWithSelector
public void testSameNodeWithSelector() throws RepositoryException
Test case forQueryObjectModelFactory.sameNode(String, String)
- Throws:
RepositoryException
-
testSameNodeJoinCondition
public void testSameNodeJoinCondition() throws RepositoryException
- Throws:
RepositoryException
-
testSameNodeJoinConditionWithPath
public void testSameNodeJoinConditionWithPath() throws RepositoryException
- Throws:
RepositoryException
-
testSelector
public void testSelector() throws RepositoryException
Test case forQueryObjectModelFactory.selector(String, String)
- Throws:
RepositoryException
-
testSelectorWithName
public void testSelectorWithName() throws RepositoryException
Test case forQueryObjectModelFactory.selector(String, String)
- Throws:
RepositoryException
-
testUpperCase
public void testUpperCase() throws RepositoryException
Test case forQueryObjectModelFactory.upperCase(DynamicOperand)
- Throws:
RepositoryException
-
-