Class SearchHighlightingFieldsTest
- 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.SearchHighlightingFieldsTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class SearchHighlightingFieldsTest extends AbstractIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESCRIPTION_FIELD
static java.lang.String
LANGUAGE_EN
static java.lang.String
NAME_FIELD
static java.lang.String
PRODUCT_CODE_FIELD
static java.lang.String
SEARCH_TERM_RED
static java.lang.String
SEARCH_TERM_SHIRT
static java.lang.String
SEARCH_TERM_TROUSERS
static java.lang.String
SYNONYM_TERM_TROUSERS
-
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 SearchHighlightingFieldsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadData()
void
testDisableHighlightingEnableProperties()
void
testEnableHighlightingDisableProperties()
void
testHighlightingForQuery()
void
testHighlightingFreeTextSearch()
void
testHighlightingFreeTextSearchWithSynonym()
void
testWithoutHighlighting()
-
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
-
-
-
-
Field Detail
-
SEARCH_TERM_SHIRT
public static final java.lang.String SEARCH_TERM_SHIRT
- See Also:
- Constant Field Values
-
SEARCH_TERM_TROUSERS
public static final java.lang.String SEARCH_TERM_TROUSERS
- See Also:
- Constant Field Values
-
SYNONYM_TERM_TROUSERS
public static final java.lang.String SYNONYM_TERM_TROUSERS
- See Also:
- Constant Field Values
-
SEARCH_TERM_RED
public static final java.lang.String SEARCH_TERM_RED
- See Also:
- Constant Field Values
-
LANGUAGE_EN
public static final java.lang.String LANGUAGE_EN
- See Also:
- Constant Field Values
-
NAME_FIELD
public static final java.lang.String NAME_FIELD
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD
public static final java.lang.String DESCRIPTION_FIELD
- See Also:
- Constant Field Values
-
PRODUCT_CODE_FIELD
public static final java.lang.String PRODUCT_CODE_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadData
protected void loadData() throws ImpExException, java.io.IOException, FacetConfigServiceException, SolrServiceException, org.apache.solr.client.solrj.SolrServerException
- Overrides:
loadData
in classAbstractIntegrationTest
- Throws:
ImpExException
java.io.IOException
FacetConfigServiceException
SolrServiceException
org.apache.solr.client.solrj.SolrServerException
-
testWithoutHighlighting
public void testWithoutHighlighting() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testEnableHighlightingDisableProperties
public void testEnableHighlightingDisableProperties() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDisableHighlightingEnableProperties
public void testDisableHighlightingEnableProperties() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testHighlightingFreeTextSearch
public void testHighlightingFreeTextSearch() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testHighlightingFreeTextSearchWithSynonym
public void testHighlightingFreeTextSearchWithSynonym() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testHighlightingForQuery
public void testHighlightingForQuery() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-