org.apache.jackrabbit.test.api.query.qom
Class QueryObjectModelFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jackrabbit.test.JUnitTest
              extended by org.apache.jackrabbit.test.AbstractJCRTest
                  extended by org.apache.jackrabbit.test.api.query.AbstractQueryTest
                      extended by org.apache.jackrabbit.test.api.query.qom.AbstractQOMTest
                          extended by org.apache.jackrabbit.test.api.query.qom.QueryObjectModelFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class QueryObjectModelFactoryTest
extends AbstractQOMTest

QueryObjectModelFactoryTest tests all methods on the QueryObjectModelFactory.


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, 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, logger
 
Constructor Summary
QueryObjectModelFactoryTest()
           
 
Method Summary
 void testAnd()
          Test case for QueryObjectModelFactory.and(Constraint, Constraint)
 void testBindVariableValue()
          Test case for QueryObjectModelFactory.bindVariable(String)
 void testChildNode()
          Test case for QueryObjectModelFactory.childNode(String, String)
 void testChildNodeJoinCondition()
          Test case for QueryObjectModelFactory.childNodeJoinCondition(String, String)
 void testChildNodeWithSelector()
          Test case for QueryObjectModelFactory.childNode(String, String)
 void testColumn()
          Test case for QueryObjectModelFactory.column(String, String, String)
 void testColumnAllProperties()
          Test case for QueryObjectModelFactory.column(String, String, String)
 void testColumnWithColumnName()
          Test case for QueryObjectModelFactory.column(String, String, String)
 void testColumnWithSelector()
          Test case for QueryObjectModelFactory.column(String, String, String)
 void testComparison()
          Test case for QueryObjectModelFactory.comparison(DynamicOperand, String, StaticOperand)
 void testCreateQuery()
           
 void testCreateQueryFromSource()
           
 void testCreateQueryFromSourceWithConstraint()
           
 void testCreateQueryFromSourceWithConstraintAndOrdering()
           
 void testCreateQueryFromSourceWithConstraintOrderingAndColumn()
           
 void testCreateQueryWithConstraint()
           
 void testCreateQueryWithConstraintAndOrdering()
           
 void testCreateQueryWithConstraintOrderingAndColumn()
           
 void testDescendantNode()
          Test case for QueryObjectModelFactory.descendantNode(String, String)
 void testDescendantNodeJoinCondition()
          Test case for QueryObjectModelFactory.descendantNodeJoinCondition(String, String)
 void testDescendantNodeWithSelector()
          Test case for QueryObjectModelFactory.descendantNode(String, String)
 void testEquiJoinCondition()
          Test case for QueryObjectModelFactory.equiJoinCondition(String, String, String, String)
 void testFullTextSearch()
          Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)
 void testFullTextSearchAllProperties()
          Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)
 void testFullTextSearchScore()
          Test case for QueryObjectModelFactory.fullTextSearchScore(String)
 void testFullTextSearchScoreWithSelector()
          Test case for QueryObjectModelFactory.fullTextSearchScore(String)
 void testFullTextSearchWithBindVariableValue()
          Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)
 void testJoin()
          Test case for QueryObjectModelFactory.join(Source, Source, String, JoinCondition)
 void testLength()
          Test case for QueryObjectModelFactory.length(PropertyValue)
 void testLiteral()
          Test case for QueryObjectModelFactory.literal(Value)
 void testLowerCase()
          Test case for QueryObjectModelFactory.lowerCase(DynamicOperand)
 void testNodeLocalName()
          Test case for QueryObjectModelFactory.nodeLocalName(String)
 void testNodeLocalNameWithSelector()
          Test case for QueryObjectModelFactory.nodeLocalName(String)
 void testNodeName()
          Test case for QueryObjectModelFactory.nodeName(String)
 void testNodeNameWithSelector()
          Test case for QueryObjectModelFactory.nodeName(String)
 void testNot()
          Test case for QueryObjectModelFactory.not(Constraint)
 void testOr()
          Test case for QueryObjectModelFactory.or(Constraint, Constraint)
 void testOrderingAscending()
          Test case for QueryObjectModelFactory.ascending(DynamicOperand)
 void testOrderingDescending()
          Test case for QueryObjectModelFactory.descending(DynamicOperand)
 void testPropertyExistence()
          Test case for QueryObjectModelFactory.propertyExistence(String, String)
 void testPropertyExistenceWithSelector()
          Test case for QueryObjectModelFactory.propertyExistence(String, String)
 void testPropertyValue()
          Test case for QueryObjectModelFactory.propertyValue(String, String)
 void testPropertyValueWithSelector()
          Test case for QueryObjectModelFactory.propertyValue(String, String)
 void testSameNode()
          Test case for QueryObjectModelFactory.sameNode(String, String)
 void testSameNodeJoinCondition()
          Test case for QueryObjectModelFactory.sameNodeJoinCondition(String, String, String)
 void testSameNodeJoinConditionWithPath()
          Test case for QueryObjectModelFactory.sameNodeJoinCondition(String, String, String)
 void testSameNodeWithSelector()
          Test case for QueryObjectModelFactory.sameNode(String, String)
 void testSelector()
          Test case for QueryObjectModelFactory.selector(String, String)
 void testSelectorWithName()
          Test case for QueryObjectModelFactory.selector(String, String)
 void testUpperCase()
          Test case for QueryObjectModelFactory.upperCase(DynamicOperand)
 
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, createQuery, createQuery, createQuery, escapeIdentifierForSQL, evaluateResultOrder, execute, execute, executeSqlQuery, executeXPathQuery, isSupportedLanguage, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryObjectModelFactoryTest

public QueryObjectModelFactoryTest()
Method Detail

testAnd

public void testAnd()
             throws RepositoryException
Test case for QueryObjectModelFactory.and(Constraint, Constraint)

Throws:
RepositoryException

testOrderingAscending

public void testOrderingAscending()
                           throws RepositoryException
Test case for QueryObjectModelFactory.ascending(DynamicOperand)

Throws:
RepositoryException

testBindVariableValue

public void testBindVariableValue()
                           throws RepositoryException
Test case for QueryObjectModelFactory.bindVariable(String)

Throws:
RepositoryException

testChildNode

public void testChildNode()
                   throws RepositoryException
Test case for QueryObjectModelFactory.childNode(String, String)

Throws:
RepositoryException

testChildNodeWithSelector

public void testChildNodeWithSelector()
                               throws RepositoryException
Test case for QueryObjectModelFactory.childNode(String, String)

Throws:
RepositoryException

testChildNodeJoinCondition

public void testChildNodeJoinCondition()
                                throws RepositoryException
Test case for QueryObjectModelFactory.childNodeJoinCondition(String, String)

Throws:
RepositoryException

testColumn

public void testColumn()
                throws RepositoryException
Test case for QueryObjectModelFactory.column(String, String, String)

Throws:
RepositoryException

testColumnAllProperties

public void testColumnAllProperties()
                             throws RepositoryException
Test case for QueryObjectModelFactory.column(String, String, String)

Throws:
RepositoryException

testColumnWithColumnName

public void testColumnWithColumnName()
                              throws RepositoryException
Test case for QueryObjectModelFactory.column(String, String, String)

Throws:
RepositoryException

testColumnWithSelector

public void testColumnWithSelector()
                            throws RepositoryException
Test case for QueryObjectModelFactory.column(String, String, String)

Throws:
RepositoryException

testComparison

public void testComparison()
                    throws RepositoryException
Test case for QueryObjectModelFactory.comparison(DynamicOperand, String, StaticOperand)

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 for QueryObjectModelFactory.descendantNode(String, String)

Throws:
RepositoryException

testDescendantNodeWithSelector

public void testDescendantNodeWithSelector()
                                    throws RepositoryException
Test case for QueryObjectModelFactory.descendantNode(String, String)

Throws:
RepositoryException

testDescendantNodeJoinCondition

public void testDescendantNodeJoinCondition()
                                     throws RepositoryException
Test case for QueryObjectModelFactory.descendantNodeJoinCondition(String, String)

Throws:
RepositoryException

testOrderingDescending

public void testOrderingDescending()
                            throws RepositoryException
Test case for QueryObjectModelFactory.descending(DynamicOperand)

Throws:
RepositoryException

testEquiJoinCondition

public void testEquiJoinCondition()
                           throws RepositoryException
Test case for QueryObjectModelFactory.equiJoinCondition(String, String, String, String)

Throws:
RepositoryException

testFullTextSearch

public void testFullTextSearch()
                        throws RepositoryException
Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)

Throws:
RepositoryException

testFullTextSearchAllProperties

public void testFullTextSearchAllProperties()
                                     throws RepositoryException
Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)

Throws:
RepositoryException

testFullTextSearchWithBindVariableValue

public void testFullTextSearchWithBindVariableValue()
                                             throws RepositoryException
Test case for QueryObjectModelFactory.fullTextSearch(String, String, StaticOperand)

Throws:
RepositoryException

testFullTextSearchScore

public void testFullTextSearchScore()
                             throws RepositoryException
Test case for QueryObjectModelFactory.fullTextSearchScore(String)

Throws:
RepositoryException

testFullTextSearchScoreWithSelector

public void testFullTextSearchScoreWithSelector()
                                         throws RepositoryException
Test case for QueryObjectModelFactory.fullTextSearchScore(String)

Throws:
RepositoryException

testJoin

public void testJoin()
              throws RepositoryException
Test case for QueryObjectModelFactory.join(Source, Source, String, JoinCondition)

Throws:
RepositoryException

testLength

public void testLength()
                throws RepositoryException
Test case for QueryObjectModelFactory.length(PropertyValue)

Throws:
RepositoryException

testLiteral

public void testLiteral()
                 throws RepositoryException
Test case for QueryObjectModelFactory.literal(Value)

Throws:
RepositoryException

testLowerCase

public void testLowerCase()
                   throws RepositoryException
Test case for QueryObjectModelFactory.lowerCase(DynamicOperand)

Throws:
RepositoryException

testNodeLocalName

public void testNodeLocalName()
                       throws RepositoryException
Test case for QueryObjectModelFactory.nodeLocalName(String)

Throws:
RepositoryException

testNodeLocalNameWithSelector

public void testNodeLocalNameWithSelector()
                                   throws RepositoryException
Test case for QueryObjectModelFactory.nodeLocalName(String)

Throws:
RepositoryException

testNodeName

public void testNodeName()
                  throws RepositoryException
Test case for QueryObjectModelFactory.nodeName(String)

Throws:
RepositoryException

testNodeNameWithSelector

public void testNodeNameWithSelector()
                              throws RepositoryException
Test case for QueryObjectModelFactory.nodeName(String)

Throws:
RepositoryException

testNot

public void testNot()
             throws RepositoryException
Test case for QueryObjectModelFactory.not(Constraint)

Throws:
RepositoryException

testOr

public void testOr()
            throws RepositoryException
Test case for QueryObjectModelFactory.or(Constraint, Constraint)

Throws:
RepositoryException

testPropertyExistence

public void testPropertyExistence()
                           throws RepositoryException
Test case for QueryObjectModelFactory.propertyExistence(String, String)

Throws:
RepositoryException

testPropertyExistenceWithSelector

public void testPropertyExistenceWithSelector()
                                       throws RepositoryException
Test case for QueryObjectModelFactory.propertyExistence(String, String)

Throws:
RepositoryException

testPropertyValue

public void testPropertyValue()
                       throws RepositoryException
Test case for QueryObjectModelFactory.propertyValue(String, String)

Throws:
RepositoryException

testPropertyValueWithSelector

public void testPropertyValueWithSelector()
                                   throws RepositoryException
Test case for QueryObjectModelFactory.propertyValue(String, String)

Throws:
RepositoryException

testSameNode

public void testSameNode()
                  throws RepositoryException
Test case for QueryObjectModelFactory.sameNode(String, String)

Throws:
RepositoryException

testSameNodeWithSelector

public void testSameNodeWithSelector()
                              throws RepositoryException
Test case for QueryObjectModelFactory.sameNode(String, String)

Throws:
RepositoryException

testSameNodeJoinCondition

public void testSameNodeJoinCondition()
                               throws RepositoryException
Test case for QueryObjectModelFactory.sameNodeJoinCondition(String, String, String)

Throws:
RepositoryException

testSameNodeJoinConditionWithPath

public void testSameNodeJoinConditionWithPath()
                                       throws RepositoryException
Test case for QueryObjectModelFactory.sameNodeJoinCondition(String, String, String)

Throws:
RepositoryException

testSelector

public void testSelector()
                  throws RepositoryException
Test case for QueryObjectModelFactory.selector(String, String)

Throws:
RepositoryException

testSelectorWithName

public void testSelectorWithName()
                          throws RepositoryException
Test case for QueryObjectModelFactory.selector(String, String)

Throws:
RepositoryException

testUpperCase

public void testUpperCase()
                   throws RepositoryException
Test case for QueryObjectModelFactory.upperCase(DynamicOperand)

Throws:
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.