Class IndexUpdateDeleteProductTest
- 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.IndexUpdateDeleteProductTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class IndexUpdateDeleteProductTest extends AbstractIntegrationTest
Test for adding, modifying and deleting products in the catalog. After updating the index the added products should appear in the index and the index should reflect the modifications on the products. When delete query select some products for delete from index, these products shouldn't appear in indexer.
-
-
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 IndexUpdateDeleteProductTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadData()
protected void
sleep()
void
testCreateProduct()
void
testDeleteProduct()
void
testUpdateProduct()
-
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
-
sleep
protected void sleep() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
testCreateProduct
public void testCreateProduct() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUpdateProduct
public void testUpdateProduct() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDeleteProduct
public void testDeleteProduct() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-