Class SearchInMultiCategoriesTest
- 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.SearchInMultiCategoriesTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class SearchInMultiCategoriesTest extends AbstractIntegrationTest
Tests the Solr search with multi-categories.
-
-
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_VERSION
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description SearchInMultiCategoriesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadData()
void
testMultiCategoryCodes()
Creates the index for the hwcatalog_online, searches for products that belong to category with code "HW1200", and searches for the products that belong to both "HW1200" and "HW1210".void
testMultiCategoryNames()
Creates the index for the hwcatalog_online, sets the language to German, searches for products that belong to category with name "Hardware", searches for the products that belong to both "Hardware" and "Elektronische Geräte" , and at last searches for products that belong to "Hardware", "Elektronische Geräte", and "Topseller_online_de".-
Methods inherited from class de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getTestId, importConfig, importConfig, initializeIndexedType, readFile, setUp, tearDown
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
loadData
protected void loadData() throws java.lang.Exception
- Overrides:
loadData
in classAbstractIntegrationTest
- Throws:
java.lang.Exception
-
testMultiCategoryCodes
public void testMultiCategoryCodes() throws java.lang.Exception
Creates the index for the hwcatalog_online, searches for products that belong to category with code "HW1200", and searches for the products that belong to both "HW1200" and "HW1210".- Throws:
java.lang.Exception
-
testMultiCategoryNames
public void testMultiCategoryNames() throws java.lang.Exception
Creates the index for the hwcatalog_online, sets the language to German, searches for products that belong to category with name "Hardware", searches for the products that belong to both "Hardware" and "Elektronische Geräte" , and at last searches for products that belong to "Hardware", "Elektronische Geräte", and "Topseller_online_de".- Throws:
java.lang.Exception
-
-