Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.search.backend.testing
Class SearchEngineBackendTestCase

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.search.backend.testing.SearchEngineBackendTestCase
All Implemented Interfaces:
junit.framework.Test, RuntimeHarness

public abstract class SearchEngineBackendTestCase
extends NXRuntimeTestCase

A generic test that all backends have to pass.

Derived test cases have to:

Author:
Julien Anguenot, Georges Racinet

Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
SearchEngineBackendTestCase()
           
 
Method Summary
 SearchEngineBackend getBackend()
           
 void setUp()
           
 void testBunch()
          Test on several documents: "About Life" 12 variations on "Revelations".
 void testClear()
           
 void testDateOrderClauses()
           
 void testFromClause()
           
 void testIntBoolQuery()
           
 void testIntOrderClauses()
           
 void testNegativeLikeQueries()
           
 void testNegativeQueries()
           
 void testNullDateQuery()
           
 void testOneDoc()
          A full cycle on one document.
 void testRefQuery()
           
 void testRegistration()
           
 void testResultItem()
           
 void testResultItem2()
           
 void testSecurityIndex()
           
 void testSecurityIndexMultiplePerms()
           
 void testTextOrderClauses()
           
 void testTimeStampDateQueries()
           
 void xtestEmptyLists()
           
 void xtestNonDefaultAnalyzer()
           
 
Methods inherited from class org.nuxeo.runtime.test.NXRuntimeTestCase
addWorkingDirectoryConfigurator, deploy, deployBundle, deployContrib, deployContrib, deployFolder, deployTestContrib, deployTestContrib, fireFrameworkStarted, getResource, getWorkingDir, isStarted, start, stop, tearDown, 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
 

Constructor Detail

SearchEngineBackendTestCase

public SearchEngineBackendTestCase()
Method Detail

setUp

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

testRegistration

public void testRegistration()

getBackend

public SearchEngineBackend getBackend()

testOneDoc

public void testOneDoc()
                throws java.lang.Exception
A full cycle on one document.

Throws:
java.lang.Exception

xtestNonDefaultAnalyzer

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

testSecurityIndex

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

testSecurityIndexMultiplePerms

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

testRefQuery

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

testIntBoolQuery

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

testBunch

public void testBunch()
               throws java.lang.Exception
Test on several documents: "About Life" 12 variations on "Revelations".

Throws:
java.lang.Exception

testTimeStampDateQueries

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

testResultItem

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

testResultItem2

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

testNegativeLikeQueries

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

testNegativeQueries

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

xtestEmptyLists

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

testIntOrderClauses

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

testTextOrderClauses

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

testNullDateQuery

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

testDateOrderClauses

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

testFromClause

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

testClear

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.