Package org.apache.maven.index
Class ConcurrentUseWithMergedContextTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.index.AbstractTestSupport
org.apache.maven.index.AbstractIndexCreatorHelper
org.apache.maven.index.AbstractNexusIndexerTest
org.apache.maven.index.ConcurrentUseTest
org.apache.maven.index.ConcurrentUseWithMergedContextTest
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
ConcurrentUseWithMergedContextPublishingTest
The point in this test is: we use Merged context, and we modify some of the "members" in the merged context, while we
try to search over merged one simultaneously.
- Author:
- cstamas
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.index.ConcurrentUseTest
ConcurrentUseTest.IndexUserThread
-
Field Summary
Modifier and TypeFieldDescriptionprotected IndexingContext
protected IndexingContext
protected org.apache.lucene.store.Directory
protected org.apache.lucene.store.Directory
Fields inherited from class org.apache.maven.index.ConcurrentUseTest
repo, THREAD_COUNT
Fields inherited from class org.apache.maven.index.AbstractNexusIndexerTest
context, indexDir, nexusIndexer
Fields inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
DEFAULT_CREATORS, FULL_CREATORS, MIN_CREATORS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ConcurrentUseTest.IndexUserThread
protected void
prepareNexusIndexer
(NexusIndexer nexusIndexer) Methods inherited from class org.apache.maven.index.ConcurrentUseTest
addToIndex, deleteFromIndex, readIndex, testConcurrency
Methods inherited from class org.apache.maven.index.AbstractNexusIndexerTest
assertGroup, setUp, tearDown, unprepareNexusIndexer
Methods inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
deleteDirectory, getDirectory, testDirectory
Methods inherited from class org.apache.maven.index.AbstractTestSupport
customizeContainerConfiguration
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainer
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Field Details
-
indexDir1
protected org.apache.lucene.store.Directory indexDir1 -
context1
-
indexDir2
protected org.apache.lucene.store.Directory indexDir2 -
context2
-
-
Constructor Details
-
ConcurrentUseWithMergedContextTest
public ConcurrentUseWithMergedContextTest()
-
-
Method Details
-
prepareNexusIndexer
- Overrides:
prepareNexusIndexer
in classConcurrentUseTest
- Throws:
Exception
-
createThread
- Overrides:
createThread
in classConcurrentUseTest
-