org.apache.maven.index
Class ConcurrentUseWithMergedContextPublishingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.index.AbstractIndexCreatorHelper
                  extended by org.apache.maven.index.AbstractNexusIndexerTest
                      extended by org.apache.maven.index.ConcurrentUseTest
                          extended by org.apache.maven.index.ConcurrentUseWithMergedContextTest
                              extended by org.apache.maven.index.ConcurrentUseWithMergedContextPublishingTest
All Implemented Interfaces:
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
protected  AtomicInteger counter
           
protected  IndexPacker packer
           
protected  File repoPublish
           
 
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
ConcurrentUseWithMergedContextPublishingTest()
           
 
Method Summary
protected  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.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

packer

protected IndexPacker packer

repoPublish

protected File repoPublish

counter

protected final AtomicInteger counter
Constructor Detail

ConcurrentUseWithMergedContextPublishingTest

public ConcurrentUseWithMergedContextPublishingTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractNexusIndexerTest
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class AbstractNexusIndexerTest
Throws:
Exception

readIndex

protected int readIndex(NexusIndexer nexusIndexer,
                        IndexingContext indexingContext)
                 throws IOException
Overrides:
readIndex in class ConcurrentUseTest
Throws:
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.