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
Modifier and TypeFieldDescriptionprotected final AtomicInteger
protected IndexPacker
protected File
Fields inherited from class org.apache.maven.index.ConcurrentUseWithMergedContextTest
context1, context2, indexDir1, indexDir2
Fields inherited from class org.apache.maven.index.ConcurrentUseTest
repo, THREAD_COUNT
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 int
readIndex
(NexusIndexer nexusIndexer, IndexingContext indexingContext) protected void
setUp()
protected void
tearDown()
Methods inherited from class org.apache.maven.index.ConcurrentUseWithMergedContextTest
createThread, prepareNexusIndexer
Methods inherited from class org.apache.maven.index.ConcurrentUseTest
addToIndex, deleteFromIndex, testConcurrency
Methods inherited from class org.apache.maven.index.AbstractNexusIndexerTest
assertGroup, 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
-
packer
-
repoPublish
-
counter
-
-
Constructor Details
-
ConcurrentUseWithMergedContextPublishingTest
public ConcurrentUseWithMergedContextPublishingTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classAbstractNexusIndexerTest
- Throws:
Exception
-
tearDown
- Overrides:
tearDown
in classAbstractNexusIndexerTest
- Throws:
Exception
-
readIndex
protected int readIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException - Overrides:
readIndex
in classConcurrentUseTest
- Throws:
IOException
-