public abstract class BaseAssetSearchTestCase
extends Object
Modifier and Type | Field and Description |
---|---|
static com.liferay.portal.kernel.test.rule.AggregateTestRule |
aggregateTestRule |
Constructor and Description |
---|
BaseAssetSearchTestCase() |
Modifier and Type | Method and Description |
---|---|
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel,
Map<Locale,String> titleMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel,
String keywords,
Date expirationDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel,
String keywords,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected List<com.liferay.portal.kernel.model.BaseModel<?>> |
addBaseModels(com.liferay.portal.kernel.model.Group[] groups,
String keywords,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModelWithClassType(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel,
String keywords,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModelWithWorkflow(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel,
String keywords,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
assertCount(int expectedCount,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
com.liferay.portal.kernel.search.SearchContext searchContext) |
protected void |
assertCount(int expectedCount,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
com.liferay.portal.kernel.search.SearchContext searchContext,
int start,
int end) |
protected String[] |
format(Date[] dates,
DateFormat dateFormat) |
protected Date[] |
generateRandomDates(Date startDate,
int size) |
protected abstract Class<?> |
getBaseModelClass() |
protected String |
getBaseModelClassName() |
protected long[] |
getClassTypeIds() |
protected Date[] |
getExpirationDates(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries,
String orderByType) |
protected String[] |
getOrderedTitles(List<Map<Locale,String>> orderedTitleMaps,
Locale locale) |
protected com.liferay.portal.kernel.model.BaseModel<?> |
getParentBaseModel(com.liferay.portal.kernel.model.Group group,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected abstract String |
getSearchKeywords() |
protected String[] |
getTitles(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries,
Locale locale) |
protected boolean |
isLocalizableTitle() |
protected List<com.liferay.asset.kernel.model.AssetEntry> |
search(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
com.liferay.portal.kernel.search.SearchContext searchContext) |
protected int |
searchCount(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
com.liferay.portal.kernel.search.SearchContext searchContext,
int start,
int end) |
void |
setUp() |
void |
testAllAssetCategories1() |
void |
testAllAssetCategories2() |
void |
testAllAssetCategories3() |
void |
testAllAssetCategories4() |
void |
testAllAssetTags1() |
void |
testAllAssetTags2() |
void |
testAllAssetTags3() |
void |
testAllAssetTags4() |
void |
testAllAssetTagsMultipleGroups1() |
void |
testAllAssetTagsMultipleGroups2() |
void |
testAllAssetTagsMultipleGroups3() |
void |
testAllAssetTagsMultipleGroups4() |
void |
testAnyAssetCategories1() |
void |
testAnyAssetCategories2() |
void |
testAnyAssetCategories3() |
void |
testAnyAssetCategories4() |
void |
testAnyAssetTags1() |
void |
testAnyAssetTags2() |
void |
testAnyAssetTags3() |
void |
testAnyAssetTags4() |
protected void |
testAssetCategorization(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int expectedResults) |
protected void |
testAssetCategorization(com.liferay.portal.kernel.model.Group[] groups,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int expectedResults) |
void |
testAssetCategoryAllAndAny() |
void |
testAssetCategoryNotAllAndAll() |
void |
testAssetCategoryNotAllAndAny() |
void |
testAssetCategoryNotAllAndNotAny() |
void |
testAssetCategoryNotAnyAndAll() |
void |
testAssetCategoryNotAnyAndAny() |
void |
testAssetTagsAllAndAny() |
void |
testAssetTagsNotAllAndAll() |
void |
testAssetTagsNotAllAndAny() |
void |
testAssetTagsNotAllAndNotAny() |
void |
testAssetTagsNotAnyAndAll() |
void |
testAssetTagsNotAnyAndAny() |
void |
testClassName1() |
void |
testClassName2() |
protected void |
testClassNames(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int expectedResult) |
protected void |
testClassTypeIds(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
boolean classType) |
void |
testClassTypeIds1() |
void |
testClassTypeIds2() |
void |
testGroups() |
void |
testNotAllAssetCategories1() |
void |
testNotAllAssetCategories2() |
void |
testNotAllAssetCategories3() |
void |
testNotAllAssetCategories4() |
void |
testNotAllAssetTags1() |
void |
testNotAllAssetTags2() |
void |
testNotAllAssetTags3() |
void |
testNotAllAssetTags4() |
void |
testNotAllAssetTagsMultipleGroups1() |
void |
testNotAllAssetTagsMultipleGroups2() |
void |
testNotAllAssetTagsMultipleGroups3() |
void |
testNotAllAssetTagsMultipleGroups4() |
void |
testNotAnyAssetCategories1() |
void |
testNotAnyAssetCategories2() |
void |
testNotAnyAssetCategories3() |
void |
testNotAnyAssetCategories4() |
void |
testNotAnyAssetTags1() |
void |
testNotAnyAssetTags2() |
void |
testNotAnyAssetTags3() |
void |
testNotAnyAssetTags4() |
protected void |
testOrderByCreateDate(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
String orderByType,
String[] titles,
String[] orderedTitles) |
void |
testOrderByCreateDateAsc() |
void |
testOrderByCreateDateDesc() |
protected void |
testOrderByExpirationDate(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
String orderByType,
Date[] expirationDates) |
void |
testOrderByExpirationDateAsc() |
void |
testOrderByExpirationDateDesc() |
protected void |
testOrderByTitle(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
String orderByType,
List<Map<Locale,String>> titleMaps,
List<Map<Locale,String>> orderedTitleMaps,
Locale[] locales) |
void |
testOrderByTitleAsc() |
void |
testOrderByTitleDesc() |
protected void |
testPaginationType(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int size) |
void |
testPaginationTypeNone() |
void |
testPaginationTypeRegular() |
void |
testPaginationTypeSimple() |
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
public void setUp() throws Exception
Exception
public void testAllAssetCategories1() throws Exception
Exception
public void testAllAssetCategories2() throws Exception
Exception
public void testAllAssetCategories3() throws Exception
Exception
public void testAllAssetCategories4() throws Exception
Exception
public void testAllAssetTags1() throws Exception
Exception
public void testAllAssetTags2() throws Exception
Exception
public void testAllAssetTags3() throws Exception
Exception
public void testAllAssetTags4() throws Exception
Exception
public void testAllAssetTagsMultipleGroups1() throws Exception
Exception
public void testAllAssetTagsMultipleGroups2() throws Exception
Exception
public void testAllAssetTagsMultipleGroups3() throws Exception
Exception
public void testAllAssetTagsMultipleGroups4() throws Exception
Exception
public void testAnyAssetCategories1() throws Exception
Exception
public void testAnyAssetCategories2() throws Exception
Exception
public void testAnyAssetCategories3() throws Exception
Exception
public void testAnyAssetCategories4() throws Exception
Exception
public void testAnyAssetTags1() throws Exception
Exception
public void testAnyAssetTags2() throws Exception
Exception
public void testAnyAssetTags3() throws Exception
Exception
public void testAnyAssetTags4() throws Exception
Exception
public void testAssetCategoryAllAndAny() throws Exception
Exception
public void testAssetCategoryNotAllAndAll() throws Exception
Exception
public void testAssetCategoryNotAllAndAny() throws Exception
Exception
public void testAssetCategoryNotAllAndNotAny() throws Exception
Exception
public void testAssetCategoryNotAnyAndAll() throws Exception
Exception
public void testAssetCategoryNotAnyAndAny() throws Exception
Exception
public void testAssetTagsAllAndAny() throws Exception
Exception
public void testAssetTagsNotAllAndAll() throws Exception
Exception
public void testAssetTagsNotAllAndAny() throws Exception
Exception
public void testAssetTagsNotAllAndNotAny() throws Exception
Exception
public void testAssetTagsNotAnyAndAll() throws Exception
Exception
public void testAssetTagsNotAnyAndAny() throws Exception
Exception
public void testClassName1() throws Exception
Exception
public void testClassName2() throws Exception
Exception
public void testClassTypeIds1() throws Exception
Exception
public void testClassTypeIds2() throws Exception
Exception
public void testGroups() throws Exception
Exception
public void testNotAllAssetCategories1() throws Exception
Exception
public void testNotAllAssetCategories2() throws Exception
Exception
public void testNotAllAssetCategories3() throws Exception
Exception
public void testNotAllAssetCategories4() throws Exception
Exception
public void testNotAllAssetTags1() throws Exception
Exception
public void testNotAllAssetTags2() throws Exception
Exception
public void testNotAllAssetTags3() throws Exception
Exception
public void testNotAllAssetTags4() throws Exception
Exception
public void testNotAllAssetTagsMultipleGroups1() throws Exception
Exception
public void testNotAllAssetTagsMultipleGroups2() throws Exception
Exception
public void testNotAllAssetTagsMultipleGroups3() throws Exception
Exception
public void testNotAllAssetTagsMultipleGroups4() throws Exception
Exception
public void testNotAnyAssetCategories1() throws Exception
Exception
public void testNotAnyAssetCategories2() throws Exception
Exception
public void testNotAnyAssetCategories3() throws Exception
Exception
public void testNotAnyAssetCategories4() throws Exception
Exception
public void testNotAnyAssetTags1() throws Exception
Exception
public void testNotAnyAssetTags2() throws Exception
Exception
public void testNotAnyAssetTags3() throws Exception
Exception
public void testNotAnyAssetTags4() throws Exception
Exception
public void testOrderByCreateDateAsc() throws Exception
Exception
public void testOrderByCreateDateDesc() throws Exception
Exception
public void testOrderByExpirationDateAsc() throws Exception
Exception
public void testOrderByExpirationDateDesc() throws Exception
Exception
public void testOrderByTitleAsc() throws Exception
Exception
public void testOrderByTitleDesc() throws Exception
Exception
public void testPaginationTypeNone() throws Exception
Exception
public void testPaginationTypeRegular() throws Exception
Exception
public void testPaginationTypeSimple() throws Exception
Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, String keywords, Date expirationDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, String keywords, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected List<com.liferay.portal.kernel.model.BaseModel<?>> addBaseModels(com.liferay.portal.kernel.model.Group[] groups, String keywords, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithClassType(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, String keywords, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, String keywords, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected void assertCount(int expectedCount, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
Exception
protected void assertCount(int expectedCount, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, com.liferay.portal.kernel.search.SearchContext searchContext, int start, int end) throws Exception
Exception
protected String[] format(Date[] dates, DateFormat dateFormat)
protected Date[] generateRandomDates(Date startDate, int size)
protected abstract Class<?> getBaseModelClass()
protected String getBaseModelClassName()
protected long[] getClassTypeIds()
protected Date[] getExpirationDates(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries, String orderByType) throws Exception
Exception
protected String[] getOrderedTitles(List<Map<Locale,String>> orderedTitleMaps, Locale locale) throws Exception
Exception
protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
Exception
protected abstract String getSearchKeywords()
protected String[] getTitles(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries, Locale locale) throws Exception
Exception
protected boolean isLocalizableTitle()
protected List<com.liferay.asset.kernel.model.AssetEntry> search(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
Exception
protected int searchCount(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, com.liferay.portal.kernel.search.SearchContext searchContext, int start, int end) throws Exception
Exception
protected void testAssetCategorization(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int expectedResults) throws Exception
Exception
protected void testAssetCategorization(com.liferay.portal.kernel.model.Group[] groups, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int expectedResults) throws Exception
Exception
protected void testClassNames(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int expectedResult) throws Exception
Exception
protected void testClassTypeIds(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, boolean classType) throws Exception
Exception
protected void testOrderByCreateDate(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, String orderByType, String[] titles, String[] orderedTitles) throws Exception
Exception
protected void testOrderByExpirationDate(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, String orderByType, Date[] expirationDates) throws Exception
Exception
protected void testOrderByTitle(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, String orderByType, List<Map<Locale,String>> titleMaps, List<Map<Locale,String>> orderedTitleMaps, Locale[] locales) throws Exception
Exception
protected void testPaginationType(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int size) throws Exception
Exception