org.apache.maven.index
Class NexusIndexerTest

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.NexusIndexerTest
All Implemented Interfaces:
Test

public class NexusIndexerTest
extends AbstractIndexCreatorHelper

Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
DEFAULT_CREATORS, FULL_CREATORS, MIN_CREATORS
 
Constructor Summary
NexusIndexerTest()
           
 
Method Summary
 void checkResults(Field field, String query, org.apache.lucene.search.Query q, IteratorSearchResponse res, File expectedResults)
          Will "print" the result set, and suck up a file and compare the two
 void performQueryCreatorNGSearch(NexusIndexer indexer, IndexingContext context)
           
 void testIdentity()
           
 void testQueryCreatorNG()
           
 void testQueryCreatorNGSearch()
           
 void testQueryCreatorNGSearchOnMergedContext()
           
 void testSearchFlat()
           
 void testSearchGrouped()
           
 void testSearchIterator()
           
 void testSearchIteratorWithFilter()
           
 void testSearchPackaging()
           
 void testUnpack()
           
 void testUpdateArtifact()
           
 
Methods inherited from class org.apache.maven.index.AbstractIndexCreatorHelper
deleteDirectory, getDirectory, setUp, 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, tearDown
 
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

NexusIndexerTest

public NexusIndexerTest()
Method Detail

testQueryCreatorNG

public void testQueryCreatorNG()
                        throws Exception
Throws:
Exception

performQueryCreatorNGSearch

public void performQueryCreatorNGSearch(NexusIndexer indexer,
                                        IndexingContext context)
                                 throws Exception
Throws:
Exception

testQueryCreatorNGSearch

public void testQueryCreatorNGSearch()
                              throws Exception
Throws:
Exception

testQueryCreatorNGSearchOnMergedContext

public void testQueryCreatorNGSearchOnMergedContext()
                                             throws Exception
Throws:
Exception

checkResults

public void checkResults(Field field,
                         String query,
                         org.apache.lucene.search.Query q,
                         IteratorSearchResponse res,
                         File expectedResults)
                  throws IOException
Will "print" the result set, and suck up a file and compare the two

Throws:
IOException

testSearchIterator

public void testSearchIterator()
                        throws Exception
Throws:
Exception

testSearchIteratorWithFilter

public void testSearchIteratorWithFilter()
                                  throws Exception
Throws:
Exception

testSearchGrouped

public void testSearchGrouped()
                       throws Exception
Throws:
Exception

testSearchFlat

public void testSearchFlat()
                    throws Exception
Throws:
Exception

testSearchPackaging

public void testSearchPackaging()
                         throws Exception
Throws:
Exception

testIdentity

public void testIdentity()
                  throws Exception
Throws:
Exception

testUpdateArtifact

public void testUpdateArtifact()
                        throws Exception
Throws:
Exception

testUnpack

public void testUnpack()
                throws Exception
Throws:
Exception


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