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
 
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, failNotEquals, failNotSame, failSame, format
 
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 javax.jcr.RepositoryException
Test case for QueryObjectModelFactory.and(Constraint, Constraint)

Throws:
javax.jcr.RepositoryException

testOrderingAscending

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

Throws:
javax.jcr.RepositoryException

testBindVariableValue

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

Throws:
javax.jcr.RepositoryException

testChildNode

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

Throws:
javax.jcr.RepositoryException

testChildNodeWithSelector

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

Throws:
javax.jcr.RepositoryException

testChildNodeJoinCondition

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

Throws:
javax.jcr.RepositoryException

testColumn

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

Throws:
javax.jcr.RepositoryException

testColumnAllProperties

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

Throws:
javax.jcr.RepositoryException

testColumnWithColumnName

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

Throws:
javax.jcr.RepositoryException

testColumnWithSelector

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

Throws:
javax.jcr.RepositoryException

testComparison

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

Throws:
javax.jcr.RepositoryException

testCreateQuery

public void testCreateQuery()
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryWithConstraint

public void testCreateQueryWithConstraint()
                                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryWithConstraintAndOrdering

public void testCreateQueryWithConstraintAndOrdering()
                                              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryWithConstraintOrderingAndColumn

public void testCreateQueryWithConstraintOrderingAndColumn()
                                                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryFromSource

public void testCreateQueryFromSource()
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryFromSourceWithConstraint

public void testCreateQueryFromSourceWithConstraint()
                                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryFromSourceWithConstraintAndOrdering

public void testCreateQueryFromSourceWithConstraintAndOrdering()
                                                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testCreateQueryFromSourceWithConstraintOrderingAndColumn

public void testCreateQueryFromSourceWithConstraintOrderingAndColumn()
                                                              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testDescendantNode

public void testDescendantNode()
                        throws javax.jcr.RepositoryException
Test case for QueryObjectModelFactory.descendantNode(String, String)

Throws:
javax.jcr.RepositoryException

testDescendantNodeWithSelector

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

Throws:
javax.jcr.RepositoryException

testDescendantNodeJoinCondition

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

Throws:
javax.jcr.RepositoryException

testOrderingDescending

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

Throws:
javax.jcr.RepositoryException

testEquiJoinCondition

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

Throws:
javax.jcr.RepositoryException

testFullTextSearch

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

Throws:
javax.jcr.RepositoryException

testFullTextSearchAllProperties

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

Throws:
javax.jcr.RepositoryException

testFullTextSearchWithBindVariableValue

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

Throws:
javax.jcr.RepositoryException

testFullTextSearchScore

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

Throws:
javax.jcr.RepositoryException

testFullTextSearchScoreWithSelector

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

Throws:
javax.jcr.RepositoryException

testJoin

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

Throws:
javax.jcr.RepositoryException

testLength

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

Throws:
javax.jcr.RepositoryException

testLiteral

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

Throws:
javax.jcr.RepositoryException

testLowerCase

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

Throws:
javax.jcr.RepositoryException

testNodeLocalName

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

Throws:
javax.jcr.RepositoryException

testNodeLocalNameWithSelector

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

Throws:
javax.jcr.RepositoryException

testNodeName

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

Throws:
javax.jcr.RepositoryException

testNodeNameWithSelector

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

Throws:
javax.jcr.RepositoryException

testNot

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

Throws:
javax.jcr.RepositoryException

testOr

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

Throws:
javax.jcr.RepositoryException

testPropertyExistence

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

Throws:
javax.jcr.RepositoryException

testPropertyExistenceWithSelector

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

Throws:
javax.jcr.RepositoryException

testPropertyValue

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

Throws:
javax.jcr.RepositoryException

testPropertyValueWithSelector

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

Throws:
javax.jcr.RepositoryException

testSameNode

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

Throws:
javax.jcr.RepositoryException

testSameNodeWithSelector

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

Throws:
javax.jcr.RepositoryException

testSameNodeJoinCondition

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

Throws:
javax.jcr.RepositoryException

testSameNodeJoinConditionWithPath

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

Throws:
javax.jcr.RepositoryException

testSelector

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

Throws:
javax.jcr.RepositoryException

testSelectorWithName

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

Throws:
javax.jcr.RepositoryException

testUpperCase

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

Throws:
javax.jcr.RepositoryException


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