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, getContext, getOSGiAdapter, getProperties, getResource, getWorkingDir, isStarted, lookupBundle, 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 Exception
Overrides:
setUp in class NXRuntimeTestCase
Throws:
Exception

testRegistration

public void testRegistration()

getBackend

public SearchEngineBackend getBackend()

testOneDoc

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

Throws:
Exception

xtestNonDefaultAnalyzer

public void xtestNonDefaultAnalyzer()
                             throws Exception
Throws:
Exception

testSecurityIndex

public void testSecurityIndex()
                       throws Exception
Throws:
Exception

testSecurityIndexMultiplePerms

public void testSecurityIndexMultiplePerms()
                                    throws Exception
Throws:
Exception

testRefQuery

public void testRefQuery()
                  throws Exception
Throws:
Exception

testIntBoolQuery

public void testIntBoolQuery()
                      throws Exception
Throws:
Exception

testBunch

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

Throws:
Exception

testTimeStampDateQueries

public void testTimeStampDateQueries()
                              throws Exception
Throws:
Exception

testResultItem

public void testResultItem()
                    throws Exception
Throws:
Exception

testResultItem2

public void testResultItem2()
                     throws Exception
Throws:
Exception

testNegativeLikeQueries

public void testNegativeLikeQueries()
                             throws Exception
Throws:
Exception

testNegativeQueries

public void testNegativeQueries()
                         throws Exception
Throws:
Exception

xtestEmptyLists

public void xtestEmptyLists()
                     throws Exception
Throws:
Exception

testIntOrderClauses

public void testIntOrderClauses()
                         throws Exception
Throws:
Exception

testTextOrderClauses

public void testTextOrderClauses()
                          throws Exception
Throws:
Exception

testNullDateQuery

public void testNullDateQuery()
                       throws Exception
Throws:
Exception

testDateOrderClauses

public void testDateOrderClauses()
                          throws Exception
Throws:
Exception

testFromClause

public void testFromClause()
                    throws Exception
Throws:
Exception

testClear

public void testClear()
               throws Exception
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.