Package org.apache.maven.index
Class ConcurrentUseTest
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
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
ConcurrentUseWithMergedContextTest
-
Nested Class Summary
-
Field Summary
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 void
addToIndex
(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) protected ConcurrentUseTest.IndexUserThread
createThread
(org.apache.maven.index.ArtifactInfo ai) protected void
deleteFromIndex
(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) protected void
prepareNexusIndexer
(org.apache.maven.index.NexusIndexer nexusIndexer) protected int
readIndex
(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) void
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
-
THREAD_COUNT
public static final int THREAD_COUNT- See Also:
-
repo
-
-
Constructor Details
-
ConcurrentUseTest
public ConcurrentUseTest()
-
-
Method Details
-
prepareNexusIndexer
protected void prepareNexusIndexer(org.apache.maven.index.NexusIndexer nexusIndexer) throws Exception - Specified by:
prepareNexusIndexer
in classAbstractNexusIndexerTest
- Throws:
Exception
-
createThread
-
testConcurrency
- Throws:
Exception
-
addToIndex
protected void addToIndex(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) throws IOException - Throws:
IOException
-
deleteFromIndex
protected void deleteFromIndex(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) throws IOException - Throws:
IOException
-
readIndex
protected int readIndex(org.apache.maven.index.NexusIndexer nexusIndexer, org.apache.maven.index.context.IndexingContext indexingContext) throws IOException - Throws:
IOException
-