Package org.apache.maven.index
Class ConcurrentUseWithMergedContextPublishingTest
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
org.apache.maven.index.ConcurrentUseWithMergedContextTest
org.apache.maven.index.ConcurrentUseWithMergedContextPublishingTest
- All Implemented Interfaces:
junit.framework.Test
public class ConcurrentUseWithMergedContextPublishingTest
extends ConcurrentUseWithMergedContextTest
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 publish those simultaneously.
- Author:
- cstamas
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.index.ConcurrentUseTest
ConcurrentUseTest.IndexUserThread -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicIntegerprotected IndexPackerprotected FileFields inherited from class org.apache.maven.index.ConcurrentUseWithMergedContextTest
context1, context2, indexDir1, indexDir2Fields inherited from class org.apache.maven.index.ConcurrentUseTest
repo, THREAD_COUNTFields 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 intreadIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected voidsetUp()protected voidtearDown()Methods inherited from class org.apache.maven.index.ConcurrentUseWithMergedContextTest
createThread, prepareNexusIndexerMethods inherited from class org.apache.maven.index.ConcurrentUseTest
addToIndex, deleteFromIndex, testConcurrencyMethods inherited from class org.apache.maven.index.AbstractNexusIndexerTest
assertGroup, 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
-
packer
-
repoPublish
-
counter
-
-
Constructor Details
-
ConcurrentUseWithMergedContextPublishingTest
public ConcurrentUseWithMergedContextPublishingTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractNexusIndexerTest- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classAbstractNexusIndexerTest- Throws:
Exception
-
readIndex
protected int readIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException - Overrides:
readIndexin classConcurrentUseTest- Throws:
IOException
-