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 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(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 String REPOSITORY_NAME
See Also:
Constant Field Values

session

public CoreSession session
Constructor Detail

QueryTestCase

public QueryTestCase()
Method Detail

setUp

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

deployRepository

public abstract void deployRepository()
                               throws Exception
Throws:
Exception

undeployRepository

public abstract void undeployRepository()
                                 throws Exception
Throws:
Exception

tearDown

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

openSession

public void openSession()
                 throws ClientException
Throws:
ClientException

closeSession

public void closeSession()

testQueryBasic

public void testQueryBasic()
                    throws Exception
Throws:
Exception

testQueryMultiple

public void testQueryMultiple()
                       throws Exception
Throws:
Exception

testQueryNegativeMultiple

public void testQueryNegativeMultiple()
                               throws Exception
Throws:
Exception

testQueryAfterEdit

public void testQueryAfterEdit()
                        throws ClientException,
                               IOException
Throws:
ClientException
IOException

testOrderBy

public void testOrderBy()
                 throws Exception
Throws:
Exception

testOrderBySeveralColumns

public void testOrderBySeveralColumns()
                               throws Exception
Throws:
Exception

testOrderBySameColumns

public void testOrderBySameColumns()
                            throws Exception
Throws:
Exception

testOrderByPath

public void testOrderByPath()
                     throws Exception
Throws:
Exception

testOrderByPos

public void testOrderByPos()
                    throws Exception
Throws:
Exception

testBatching

public void testBatching()
                  throws Exception
Throws:
Exception

doBatching

public void doBatching(boolean checkNames)
                throws Exception
Throws:
Exception

testEcmPathEqual

public void testEcmPathEqual()
                      throws Exception
Throws:
Exception

testStartsWith

public void testStartsWith()
                    throws Exception
Throws:
Exception

testStartsWithMove

public void testStartsWithMove()
                        throws Exception
Throws:
Exception

testStartsWithNonPath

public void testStartsWithNonPath()
                           throws Exception
Throws:
Exception

testReindexEditedDocument

public void testReindexEditedDocument()
                               throws Exception
Throws:
Exception

testDate

public void testDate()
              throws Exception
Throws:
Exception

testBoolean

public void testBoolean()
                 throws Exception
Throws:
Exception

testQueryWithSecurity

public void testQueryWithSecurity()
                           throws Exception
Throws:
Exception

testQueryWithSecurityAndFulltext

public void testQueryWithSecurityAndFulltext()
                                      throws Exception
Throws:
Exception

testSecurityManagerBasic

public void testSecurityManagerBasic()
                              throws Exception
Throws:
Exception

testSecurityManagerWithTransformer

public void testSecurityManagerWithTransformer()
                                        throws Exception
Throws:
Exception

doTestSecurityManager

public void doTestSecurityManager(String contrib)
                           throws Exception
Throws:
Exception

testQueryWithProxies

public void testQueryWithProxies()
                          throws Exception
Throws:
Exception

testQueryWithProxiesNegativeMultiple

public void testQueryWithProxiesNegativeMultiple()
                                          throws Exception
Throws:
Exception

testQueryPaging

public void testQueryPaging()
                     throws Exception
Throws:
Exception

testQuerySpecialFields

public void testQuerySpecialFields()
                            throws Exception
Throws:
Exception

testEmptyLifecycle

public void testEmptyLifecycle()
                        throws Exception
Throws:
Exception

testFulltext

public void testFulltext()
                  throws Exception
Throws:
Exception

testFulltextProxy

public void testFulltextProxy()
                       throws Exception
Throws:
Exception

testFulltextExpressionSyntax

public void testFulltextExpressionSyntax()
                                  throws Exception
Throws:
Exception

testFulltextExpressionPhrase

public void testFulltextExpressionPhrase()
                                  throws Exception
Throws:
Exception

testFulltextSecondary

public void testFulltextSecondary()
                           throws Exception
Throws:
Exception

testFulltextBlob

public void testFulltextBlob()
                      throws Exception
Throws:
Exception

testFullTextCopy

public void testFullTextCopy()
                      throws Exception
Throws:
Exception

testOrderByAndDistinct

public void testOrderByAndDistinct()
                            throws Exception
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.