Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.query.test
Class QueryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by org.nuxeo.runtime.test.NXRuntimeTestCase
                          extended by org.nuxeo.ecm.core.query.test.QueryTestCase
All Implemented Interfaces:
junit.framework.Test, RuntimeHarness

public abstract class QueryTestCase
extends NXRuntimeTestCase

Author:
Dragos Mihalache, Florent Guillaume, Benjamin Jalon

Field Summary
static java.lang.String REPOSITORY_NAME
           
 CoreSession session
           
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
QueryTestCase()
           
 
Method Summary
 void closeSession()
           
abstract  void deployRepository()
           
 void doBatching(boolean checkNames)
           
 void doTestSecurityManager(java.lang.String contrib)
           
 void openSession()
           
 void setUp()
           
 void tearDown()
           
 void testBatching()
           
 void testBoolean()
           
 void testDate()
           
 void testEcmPathEqual()
           
 void testEmptyLifecycle()
           
 void testFulltext()
           
 void testFulltextBlob()
           
 void testFullTextCopy()
           
 void testFulltextExpressionPhrase()
           
 void testFulltextExpressionSyntax()
           
 void testFulltextProxy()
           
 void testFulltextSecondary()
           
 void testOrderBy()
           
 void testOrderByAndDistinct()
           
 void testOrderByPath()
           
 void testOrderByPos()
           
 void testOrderBySameColumns()
           
 void testOrderBySeveralColumns()
           
 void testQueryAfterEdit()
           
 void testQueryBasic()
           
 void testQueryMultiple()
           
 void testQueryNegativeMultiple()
           
 void testQueryPaging()
           
 void testQuerySpecialFields()
           
 void testQueryWithProxies()
           
 void testQueryWithProxiesNegativeMultiple()
           
 void testQueryWithSecurity()
           
 void testQueryWithSecurityAndFulltext()
           
 void testReindexEditedDocument()
           
 void testSecurityManagerBasic()
           
 void testSecurityManagerWithTransformer()
           
 void testStartsWith()
           
 void testStartsWithMove()
           
 void testStartsWithNonPath()
           
abstract  void undeployRepository()
           
 
Methods inherited from class org.nuxeo.runtime.test.NXRuntimeTestCase
addWorkingDirectoryConfigurator, deploy, deployBundle, deployContrib, deployContrib, deployFolder, deployTestContrib, deployTestContrib, fireFrameworkStarted, getResource, getWorkingDir, isStarted, start, stop, undeploy, undeployContrib, undeployContrib
 
Methods inherited from class org.jmock.MockObjectTestCase
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newDummy, newDummy, newDummy, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, not, or, same, startsWith, stringContains, toString
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPOSITORY_NAME

public static final java.lang.String REPOSITORY_NAME
See Also:
Constant Field Values

session

public CoreSession session
Constructor Detail

QueryTestCase

public QueryTestCase()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class NXRuntimeTestCase
Throws:
java.lang.Exception

deployRepository

public abstract void deployRepository()
                               throws java.lang.Exception
Throws:
java.lang.Exception

undeployRepository

public abstract void undeployRepository()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class NXRuntimeTestCase
Throws:
java.lang.Exception

openSession

public void openSession()
                 throws ClientException
Throws:
ClientException

closeSession

public void closeSession()

testQueryBasic

public void testQueryBasic()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testQueryMultiple

public void testQueryMultiple()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testQueryNegativeMultiple

public void testQueryNegativeMultiple()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testQueryAfterEdit

public void testQueryAfterEdit()
                        throws ClientException,
                               java.io.IOException
Throws:
ClientException
java.io.IOException

testOrderBy

public void testOrderBy()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testOrderBySeveralColumns

public void testOrderBySeveralColumns()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testOrderBySameColumns

public void testOrderBySameColumns()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOrderByPath

public void testOrderByPath()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testOrderByPos

public void testOrderByPos()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testBatching

public void testBatching()
                  throws java.lang.Exception
Throws:
java.lang.Exception

doBatching

public void doBatching(boolean checkNames)
                throws java.lang.Exception
Throws:
java.lang.Exception

testEcmPathEqual

public void testEcmPathEqual()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testStartsWith

public void testStartsWith()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testStartsWithMove

public void testStartsWithMove()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testStartsWithNonPath

public void testStartsWithNonPath()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testReindexEditedDocument

public void testReindexEditedDocument()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testDate

public void testDate()
              throws java.lang.Exception
Throws:
java.lang.Exception

testBoolean

public void testBoolean()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testQueryWithSecurity

public void testQueryWithSecurity()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testQueryWithSecurityAndFulltext

public void testQueryWithSecurityAndFulltext()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testSecurityManagerBasic

public void testSecurityManagerBasic()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testSecurityManagerWithTransformer

public void testSecurityManagerWithTransformer()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

doTestSecurityManager

public void doTestSecurityManager(java.lang.String contrib)
                           throws java.lang.Exception
Throws:
java.lang.Exception

testQueryWithProxies

public void testQueryWithProxies()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testQueryWithProxiesNegativeMultiple

public void testQueryWithProxiesNegativeMultiple()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testQueryPaging

public void testQueryPaging()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testQuerySpecialFields

public void testQuerySpecialFields()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyLifecycle

public void testEmptyLifecycle()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testFulltext

public void testFulltext()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testFulltextProxy

public void testFulltextProxy()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testFulltextExpressionSyntax

public void testFulltextExpressionSyntax()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testFulltextExpressionPhrase

public void testFulltextExpressionPhrase()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testFulltextSecondary

public void testFulltextSecondary()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testFulltextBlob

public void testFulltextBlob()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testFullTextCopy

public void testFullTextCopy()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testOrderByAndDistinct

public void testOrderByAndDistinct()
                            throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.