Package org.apache.maven.index
Class ConcurrentUseWithMergedContextTest
java.lang.Object
org.eclipse.sisu.launch.InjectedTest
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:
com.google.inject.Module
- 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 org.apache.maven.index.context.IndexingContext
protected org.apache.maven.index.context.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
createThread
(org.apache.maven.index.ArtifactInfo ai) protected void
prepareNexusIndexer
(org.apache.maven.index.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
getTestFile
Methods inherited from class org.eclipse.sisu.launch.InjectedTest
configure, configure, getBasedir, lookup, lookup, lookup, lookup, scanning, space, spaceModule
-
Field Details
-
indexDir1
protected org.apache.lucene.store.Directory indexDir1 -
context1
protected org.apache.maven.index.context.IndexingContext context1 -
indexDir2
protected org.apache.lucene.store.Directory indexDir2 -
context2
protected org.apache.maven.index.context.IndexingContext context2
-
-
Constructor Details
-
ConcurrentUseWithMergedContextTest
public ConcurrentUseWithMergedContextTest()
-
-
Method Details
-
prepareNexusIndexer
protected void prepareNexusIndexer(org.apache.maven.index.NexusIndexer nexusIndexer) throws Exception - Overrides:
prepareNexusIndexer
in classConcurrentUseTest
- Throws:
Exception
-
createThread
- Overrides:
createThread
in classConcurrentUseTest
-