Liferay 7.0-ce-b4

com.liferay.portal.search.unit.test.groupby
Class BaseGroupByTestCase

java.lang.Object
  extended by com.liferay.portal.search.unit.test.BaseIndexingTestCase
      extended by com.liferay.portal.search.unit.test.groupby.BaseGroupByTestCase

public abstract class BaseGroupByTestCase
extends BaseIndexingTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.search.unit.test.BaseIndexingTestCase
BaseIndexingTestCase.DocumentCreationHelper
 
Field Summary
protected static String GROUP_FIELD
           
 
Fields inherited from class com.liferay.portal.search.unit.test.BaseIndexingTestCase
COMPANY_ID, GROUP_ID
 
Constructor Summary
BaseGroupByTestCase()
           
 
Method Summary
protected  void addDocuments(String name, int count)
           
protected  void assertGroup(String key, int hitsCount, int docsCount, Map<String,Hits> groupedHitsMap)
           
protected  void assertGroup(String key, int count, Map<String,Hits> groupedHitsMap)
           
protected  Map<String,Hits> searchGroups(SearchContext searchContext)
           
protected  void testGroupBy()
           
protected  void testStartAndEnd()
           
protected  void testStartAndSize()
           
 
Methods inherited from class com.liferay.portal.search.unit.test.BaseIndexingTestCase
addDocument, createIndexingFixture, createSearchContext, search, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_FIELD

protected static final String GROUP_FIELD
See Also:
Constant Field Values
Constructor Detail

BaseGroupByTestCase

public BaseGroupByTestCase()
Method Detail

addDocuments

protected void addDocuments(String name,
                            int count)
                     throws Exception
Throws:
Exception

assertGroup

protected void assertGroup(String key,
                           int hitsCount,
                           int docsCount,
                           Map<String,Hits> groupedHitsMap)

assertGroup

protected void assertGroup(String key,
                           int count,
                           Map<String,Hits> groupedHitsMap)

searchGroups

protected Map<String,Hits> searchGroups(SearchContext searchContext)
                                 throws Exception
Throws:
Exception

testGroupBy

protected void testGroupBy()
                    throws Exception
Throws:
Exception

testStartAndEnd

protected void testStartAndEnd()
                        throws Exception
Throws:
Exception

testStartAndSize

protected void testStartAndSize()
                         throws Exception
Throws:
Exception

Liferay 7.0-ce-b4