Package org.apache.maven.index
Class ConcurrentUseTest
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
- All Implemented Interfaces:
junit.framework.Test
- 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
(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
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
-
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
-