org.nuxeo.ecm.core.search.backend.testing
Class SearchEngineBackendTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
org.nuxeo.runtime.test.NXRuntimeTestCase
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:
- override the ENGINE_NAME field,
- put nxsearch-framework.xml, and nxsearch-ENGINE_NAME-contrib.xml
in your test resources
- Author:
- Julien Anguenot, Georges Racinet
Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
ANYTHING, NOT_NULL, NULL |
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 |
SearchEngineBackendTestCase
public SearchEngineBackendTestCase()
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
Copyright © 2010 Nuxeo SAS. All Rights Reserved.