Class FacetDrillDownTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
de.hybris.platform.solrfacetsearch.integration.FacetDrillDownTest
- All Implemented Interfaces:
JaloSessionHolder
Tests the drill down of facets, i.e. for each selected facet value the remaining facet count should be reduced. This
also should work
-
Field Summary
Fields inherited from class de.hybris.platform.solrfacetsearch.integration.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_VERSIONFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<ProductModel>checkProductCollection(CatalogVersionModel catalogVersion, Collection<? extends ItemModel> items) protected booleanisSuperCategory(CategoryModel category, String categoryName) protected booleanisSuperCategory(ProductModel product, String categoryName) protected voidloadData()voidGiven 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 selectedvoidGiven 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 thisvoidGiven 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 =and the facet count reduced to reflect this voidGiven 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 thisvoidGiven 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 thisMethods inherited from class de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getSolrSearchProviderFactory, getTestId, importConfig, importConfig, initializeIndexedType, readFile, setUp, tearDownMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
FacetDrillDownTest
public FacetDrillDownTest()
-
-
Method Details
-
loadData
- Overrides:
loadDatain classAbstractIntegrationTest- Throws:
Exception
-
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 =and the facet count reduced to reflect this - Throws:
Exception
-
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- Throws:
Exception
-
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- Throws:
Exception
-
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- Throws:
Exception
-
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- Throws:
Exception
-
isSuperCategory
-
isSuperCategory
-
checkProductCollection
protected Collection<ProductModel> checkProductCollection(CatalogVersionModel catalogVersion, Collection<? extends ItemModel> items)
-