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
Nested Classes -
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToIndex
(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected ConcurrentUseTest.IndexUserThread
protected void
deleteFromIndex
(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected void
prepareNexusIndexer
(NexusIndexer nexusIndexer) protected int
readIndex
(NexusIndexer nexusIndexer, 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
- Specified by:
prepareNexusIndexer
in classAbstractNexusIndexerTest
- Throws:
Exception
-
createThread
-
testConcurrency
- Throws:
Exception
-
addToIndex
protected void addToIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException - Throws:
IOException
-
deleteFromIndex
protected void deleteFromIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException - Throws:
IOException
-
readIndex
protected int readIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException - Throws:
IOException
-