org.alfresco.repo.search.impl.lucene
Class ADMLuceneTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.search.impl.lucene.ADMLuceneTest
All Implemented Interfaces:
junit.framework.Test, org.alfresco.repo.dictionary.DictionaryListener

public class ADMLuceneTest
extends junit.framework.TestCase
implements org.alfresco.repo.dictionary.DictionaryListener


Nested Class Summary
static class ADMLuceneTest.UnknownDataType
           
 
Constructor Summary
ADMLuceneTest()
           
ADMLuceneTest(java.lang.String arg0)
           
 
Method Summary
 void afterDictionaryDestroy()
           
 void afterDictionaryInit()
           
 void alfrescoSqlQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String query, int count)
           
 void doNotTestIndexBackAllowsReadOperations()
           
 void ftsQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String query, int count)
           
 void ftsQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String query, int count, java.util.List expectedList)
           
 void ftsQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String query, int count, org.alfresco.service.cmr.repository.NodeRef first, org.alfresco.service.cmr.repository.NodeRef last)
           
 void ftsQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String defaultFieldName, java.lang.String query, int count)
           
 java.util.Map getOrderProperties()
           
static void main(java.lang.String[] args)
           
 void onDictionaryInit()
           
 void restManyReaders()
          Not required to run all the time; it's here for profiling.
 void setUp()
           
 void sqlQueryWithCount(ADMLuceneSearcherImpl searcher, java.lang.String query, int count)
           
protected  void tearDown()
           
 void test_ALF_8007()
           
 void test0()
           
 void test1()
           
 void test2()
           
 void test3()
           
 void test4()
           
 void test5()
           
 void test6()
           
 void testAddEscapedChild()
           
 void testAlfrescoSql()
           
 void testAllPathSearch()
           
 void testAuxDataIsPresent()
           
 void testBulkResultSet1()
           
 void testBulkResultSet10()
           
 void testBulkResultSet100()
           
 void testBulkResultSet1000()
           
 void testCmisSql()
           
 void testDelayIndex()
           
 void testDeleteAndAddReference()
           
 void testDeleteContainer()
           
 void testDeleteIssue()
           
 void testDeleteLeaf()
           
 void testDeleteSecondaryAssocToContainer()
           
 void testDeleteSecondaryAssocToLeaf()
           
 void testDeltaIssue()
           
 void testFirst()
           
 void testForKev()
           
 void testFTS()
           
 void testFTSandSort()
           
 void testFtsSort()
           
 void testIssueAR47()
           
 void testMaskDeletes()
           
 void testMissingIndex()
           
 void testMTDeleteIssue()
           
 void testNonPublicSearchServicePaging()
           
 void testNoOp()
           
 void testNumericInPath()
           
 void testOverWritetoZeroSize()
           
 void testPathSearch()
           
 void testPublicServiceSearchServicePaging()
           
 void testQuoting()
           
 void testReadAgainstDelta()
           
 void testRenameReference()
           
 void testRepeatPerformance()
           
 void testSort()
           
 void testSortIssue_AR_1515__AND__AR_1466()
          Test bug fix
 void testStandAloneIndexerCommit()
          Test basic index and search
 void testStandAlonePathIndexer()
           
 void testUpdateIndex()
           
 void testWaitForIndex()
           
 void testXPathSearch()
           
 void xtestBulkResultSet10000()
           
 
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

ADMLuceneTest

public ADMLuceneTest()

ADMLuceneTest

public ADMLuceneTest(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

afterDictionaryDestroy

public void afterDictionaryDestroy()
Specified by:
afterDictionaryDestroy in interface org.alfresco.repo.dictionary.DictionaryListener

afterDictionaryInit

public void afterDictionaryInit()
Specified by:
afterDictionaryInit in interface org.alfresco.repo.dictionary.DictionaryListener

onDictionaryInit

public void onDictionaryInit()
Specified by:
onDictionaryInit in interface org.alfresco.repo.dictionary.DictionaryListener

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getOrderProperties

public java.util.Map getOrderProperties()
Returns:
properties

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

doNotTestIndexBackAllowsReadOperations

public void doNotTestIndexBackAllowsReadOperations()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

restManyReaders

public void restManyReaders()
                     throws java.lang.Exception
Not required to run all the time; it's here for profiling.

Throws:
java.lang.Exception

testMaskDeletes

public void testMaskDeletes()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testQuoting

public void testQuoting()
                 throws java.lang.Exception
Throws:
java.lang.Exception

test_ALF_8007

public void test_ALF_8007()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testPublicServiceSearchServicePaging

public void testPublicServiceSearchServicePaging()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testNonPublicSearchServicePaging

public void testNonPublicSearchServicePaging()
                                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testAlfrescoSql

public void testAlfrescoSql()
                     throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

alfrescoSqlQueryWithCount

public void alfrescoSqlQueryWithCount(ADMLuceneSearcherImpl searcher,
                                      java.lang.String query,
                                      int count)

testCmisSql

public void testCmisSql()
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

sqlQueryWithCount

public void sqlQueryWithCount(ADMLuceneSearcherImpl searcher,
                              java.lang.String query,
                              int count)

testFtsSort

public void testFtsSort()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

testFTS

public void testFTS()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testFTSandSort

public void testFTSandSort()
                    throws java.lang.Exception
Throws:
java.lang.Exception

ftsQueryWithCount

public void ftsQueryWithCount(ADMLuceneSearcherImpl searcher,
                              java.lang.String query,
                              int count)

ftsQueryWithCount

public void ftsQueryWithCount(ADMLuceneSearcherImpl searcher,
                              java.lang.String defaultFieldName,
                              java.lang.String query,
                              int count)

ftsQueryWithCount

public void ftsQueryWithCount(ADMLuceneSearcherImpl searcher,
                              java.lang.String query,
                              int count,
                              org.alfresco.service.cmr.repository.NodeRef first,
                              org.alfresco.service.cmr.repository.NodeRef last)

ftsQueryWithCount

public void ftsQueryWithCount(ADMLuceneSearcherImpl searcher,
                              java.lang.String query,
                              int count,
                              java.util.List expectedList)

testOverWritetoZeroSize

public void testOverWritetoZeroSize()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testBulkResultSet1

public void testBulkResultSet1()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testBulkResultSet10

public void testBulkResultSet10()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testBulkResultSet100

public void testBulkResultSet100()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testBulkResultSet1000

public void testBulkResultSet1000()
                           throws java.lang.Exception
Throws:
java.lang.Exception

xtestBulkResultSet10000

public void xtestBulkResultSet10000()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testSortIssue_AR_1515__AND__AR_1466

public void testSortIssue_AR_1515__AND__AR_1466()
                                         throws java.lang.Exception
Test bug fix

Throws:
java.lang.Exception

testAuxDataIsPresent

public void testAuxDataIsPresent()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testFirst

public void testFirst()
               throws java.lang.Exception
Throws:
java.lang.Exception

test0

public void test0()
           throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteSecondaryAssocToContainer

public void testDeleteSecondaryAssocToContainer()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteSecondaryAssocToLeaf

public void testDeleteSecondaryAssocToLeaf()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteIssue

public void testDeleteIssue()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testMTDeleteIssue

public void testMTDeleteIssue()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testDeltaIssue

public void testDeltaIssue()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testRepeatPerformance

public void testRepeatPerformance()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testSort

public void testSort()
              throws java.lang.Exception
Throws:
java.lang.Exception

test1

public void test1()
           throws java.lang.Exception
Throws:
java.lang.Exception

test2

public void test2()
           throws java.lang.Exception
Throws:
java.lang.Exception

test3

public void test3()
           throws java.lang.Exception
Throws:
java.lang.Exception

test4

public void test4()
           throws java.lang.Exception
Throws:
java.lang.Exception

test5

public void test5()
           throws java.lang.Exception
Throws:
java.lang.Exception

test6

public void test6()
           throws java.lang.Exception
Throws:
java.lang.Exception

testNoOp

public void testNoOp()
              throws java.lang.Exception
Throws:
java.lang.Exception

testStandAloneIndexerCommit

public void testStandAloneIndexerCommit()
                                 throws java.lang.Exception
Test basic index and search

Throws:
java.lang.Exception
java.lang.InterruptedException

testStandAlonePathIndexer

public void testStandAlonePathIndexer()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testAllPathSearch

public void testAllPathSearch()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testPathSearch

public void testPathSearch()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testXPathSearch

public void testXPathSearch()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testMissingIndex

public void testMissingIndex()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testUpdateIndex

public void testUpdateIndex()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteLeaf

public void testDeleteLeaf()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testAddEscapedChild

public void testAddEscapedChild()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testNumericInPath

public void testNumericInPath()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteContainer

public void testDeleteContainer()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteAndAddReference

public void testDeleteAndAddReference()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testRenameReference

public void testRenameReference()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testDelayIndex

public void testDelayIndex()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testWaitForIndex

public void testWaitForIndex()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testForKev

public void testForKev()
                throws java.lang.Exception
Throws:
java.lang.Exception

testIssueAR47

public void testIssueAR47()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testReadAgainstDelta

public void testReadAgainstDelta()
                          throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.