public class SearchInFieldTest 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_VERSIONimportServicejaloSession| Constructor and Description |
|---|
SearchInFieldTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testSearchForNameInAnotherLanguage()
Given products with name = 'Sony DSC-P200 CYBER-SHOT silber_online_en' for language en in hwcatalog and no
products with name 'Sony DSC-P200 CYBER-SHOT silber_online_en' for language fr in hwcatalog and with hwcatalog
selected and with lanugage fr selected then a searchInField query should yield an empty result
|
void |
testSearchInFieldForCode()
Given a product with code = HW2300-2356 in hwcatalog and with hwcatalog selected then a searchInField query must
yield a result of size 1 containing the producht with HW2300-2356 for catalog hwcatalog
|
void |
testSearchInFieldForName()
Given products with name = 'Sony DSC-P200 CYBER-SHOT silber_online_en' for language en in hwcatalog and with
hwcatalog selected and with lanugage en selected then a searchInField query must yield a result only containing
products with the given name for langauge en and catalog hwcatalog
|
void |
testSearchInFieldWithAndConjunction()
Given products with manufacturerName = 'XFX' in hwcatalog and the products with name like 'GeForce*online_en' for
language en in hwcatalog and with hwcatalog selected and with language en selected then a searchInField for
manufacturerName = 'XFX' AND name = 'GeForce' should yield a result with products with manufacturerName = 'XFX'
AND name containing 'GeForce'
|
void |
testSearchInFieldWithOrConjunction()
Given product 'HW1240-1732' with manufacturerName = 'Hewlett-Packard' in hwcatalog and another product
'HW1100-0024' with manufacturerName = 'EIZO' in hwcatalog and with hwcatalog selected then a searchInField for
manufacturerName = 'Hewlett-Packard' OR manufacturerName = 'EIZO' should yield those two products and all products
with manufacturerName = 'Hewlett-Packard' or 'EIZO'
|
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getTestId, importConfig, importConfig, initializeIndexedType, loadData, readFile, setUp, tearDowncreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void testSearchInFieldForCode()
throws java.lang.Exception
java.lang.Exceptionpublic void testSearchInFieldForName()
throws java.lang.Exception
java.lang.Exceptionpublic void testSearchForNameInAnotherLanguage()
throws java.lang.Exception
java.lang.Exceptionpublic void testSearchInFieldWithOrConjunction()
throws java.lang.Exception
java.lang.Exceptionpublic void testSearchInFieldWithAndConjunction()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.