public class FacetDrillDownTest extends AbstractIntegrationTest
DEFAULT_ENCODING, expectedException, FACET_SEARCH_CONFIG_NAME, HW_CATALOG, ONLINE_CATALOG_VERSION, PRODUCT_CODE, SOLR_SERVER_CLOUD_ENDPOINT, SOLR_SERVER_MODE, SOLR_SERVER_STANDALONE_ENDPOINT, STAGED_CATALOG_VERSIONdefaultLanguage, jaloSession| Constructor and Description |
|---|
FacetDrillDownTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ProductModel> |
checkProductCollection(CatalogVersionModel catalogVersion,
Collection<? extends ItemModel> items) |
protected boolean |
isSuperCategory(CategoryModel category,
String categoryName) |
protected boolean |
isSuperCategory(ProductModel product,
String categoryName) |
protected void |
loadData() |
void |
testFacetDrillDown()
Given products with manufacturerName = "Intel", categoryName = "Motherboards_online_de" in language de, in
hwcatalog and with a certain facet count and with hwcatalog selected
and with facet value manufacturerName set "Intel" and with facet value categoryName set to "Motherboards_online_de" then a search yields products only with manufacturerName = "Intel" and the facet count reduced to reflect this, with the facet count lower when the second facet is selected |
void |
testFacetLocalized()
Given products with categoryName = "Motherboards_online_de" in hwcatalog and language de and with a certain facet
count
and with hwcatalog selected and with language de selected and with facet value categoryName set to "Motherboards_online_de" then a search yields products only with categoryName = "Motherboards_online_de" and the facet count reduced to reflect this |
void |
testFacetNonLocalized()
Given products with manufacturerName = "Intel" in hwcatalog and with a certain facet count
and with hwcatalog selected and with facet value manufacturerName set to "Intel" then a search yields products only with manufacturerName = |
void |
testFacetWithSearch()
Given product in a price range = "101-200" and "graphics" in description, residing in hwcatalog and with a certain
facet count
and with hwcatalog selected and with facet price set to "101-200" then when searching in description for the string "graphics" the the resulting products must be in the specified price range and and the facet count must be reduced to reflect this |
void |
testRangedFacet()
Given product in a price range = "101-200" in hwcatalog and with a certain facet count
and with hwcatalog selected and with facet price set to "101-200" then the the resulting products must be in the specified price range and the facet count mustbe reduced to reflect this |
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getTestId, importConfig, importConfig, initializeIndexedType, readFile, setUp, tearDowncreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected void loadData()
throws Exception
loadData in class AbstractIntegrationTestExceptionpublic void testFacetNonLocalized()
throws Exception
Exceptionpublic void testFacetLocalized()
throws Exception
Exceptionpublic void testFacetWithSearch()
throws Exception
Exceptionpublic void testRangedFacet()
throws Exception
Exceptionpublic void testFacetDrillDown()
throws Exception
Exceptionprotected boolean isSuperCategory(ProductModel product, String categoryName)
protected boolean isSuperCategory(CategoryModel category, String categoryName)
protected Collection<ProductModel> checkProductCollection(CatalogVersionModel catalogVersion, Collection<? extends ItemModel> items)
Copyright © 2017 SAP SE. All Rights Reserved.