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
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.maven.index.AbstractNexusIndexerTest
context, indexDir, nexusIndexerFields inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
DEFAULT_CREATORS, FULL_CREATORS, MIN_CREATORS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected ConcurrentUseTest.IndexUserThreadprotected voiddeleteFromIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected voidprepareNexusIndexer(NexusIndexer nexusIndexer) protected intreadIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) voidMethods inherited from class org.apache.maven.index.AbstractNexusIndexerTest
assertGroup, setUp, tearDown, unprepareNexusIndexerMethods inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
deleteDirectory, getDirectory, testDirectoryMethods inherited from class org.apache.maven.index.AbstractTestSupport
customizeContainerConfigurationMethods 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, teardownContainerMethods 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:
prepareNexusIndexerin 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
-