org.apache.maven.index.updater
Class AbstractIndexUpdaterTest

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.updater.AbstractIndexUpdaterTest
All Implemented Interfaces:
Test
Direct Known Subclasses:
DefaultIndexUpdaterTest, DownloadRemoteIndexerManagerTest, LocalIndexCacheTest

public abstract class AbstractIndexUpdaterTest
extends AbstractIndexCreatorHelper


Field Summary
 
Fields inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
DEFAULT_CREATORS, FULL_CREATORS, MIN_CREATORS
 
Constructor Summary
AbstractIndexUpdaterTest()
           
 
Method Summary
protected  ArtifactContext createArtifactContext(String repositoryId, String groupId, String artifactId, String version, String classifier)
           
protected  String createPath(String groupId, String artifactId, String version, String classifier)
           
protected  void packIndex(File targetDir, IndexingContext context)
           
protected  void searchFor(String groupId, int expected, IndexingContext context)
           
protected  void setUp()
           
protected  void tearDown()
           
 
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
 

Constructor Detail

AbstractIndexUpdaterTest

public AbstractIndexUpdaterTest()
Method Detail

setUp

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

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

createArtifactContext

protected ArtifactContext createArtifactContext(String repositoryId,
                                                String groupId,
                                                String artifactId,
                                                String version,
                                                String classifier)

createPath

protected String createPath(String groupId,
                            String artifactId,
                            String version,
                            String classifier)

packIndex

protected void packIndex(File targetDir,
                         IndexingContext context)
                  throws IllegalArgumentException,
                         IOException
Throws:
IllegalArgumentException
IOException

searchFor

protected void searchFor(String groupId,
                         int expected,
                         IndexingContext context)
                  throws IOException,
                         Exception
Throws:
IOException
Exception


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