|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.index.AbstractIndexCreatorHelper
org.apache.maven.index.AbstractNexusIndexerTest
org.apache.maven.index.ConcurrentUseTest
public class ConcurrentUseTest
Nested Class Summary | |
---|---|
static class |
ConcurrentUseTest.IndexUserThread
|
Field Summary | |
---|---|
protected File |
repo
|
static int |
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 | |
---|---|
ConcurrentUseTest()
|
Method Summary | |
---|---|
protected void |
addToIndex(NexusIndexer nexusIndexer,
IndexingContext indexingContext)
|
protected ConcurrentUseTest.IndexUserThread |
createThread(ArtifactInfo ai)
|
protected void |
deleteFromIndex(NexusIndexer nexusIndexer,
IndexingContext indexingContext)
|
protected void |
prepareNexusIndexer(NexusIndexer nexusIndexer)
|
protected int |
readIndex(NexusIndexer nexusIndexer,
IndexingContext indexingContext)
|
void |
testConcurrency()
|
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.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 |
---|
public static final int THREAD_COUNT
protected File repo
Constructor Detail |
---|
public ConcurrentUseTest()
Method Detail |
---|
protected void prepareNexusIndexer(NexusIndexer nexusIndexer) throws Exception
prepareNexusIndexer
in class AbstractNexusIndexerTest
Exception
protected ConcurrentUseTest.IndexUserThread createThread(ArtifactInfo ai)
public void testConcurrency() throws Exception
Exception
protected void addToIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException
IOException
protected void deleteFromIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException
IOException
protected int readIndex(NexusIndexer nexusIndexer, IndexingContext indexingContext) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |