Class AbstractSearchQueryPerfTest
- 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.AbstractSearchQueryPerfTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
SearchQueryFacetsPerfSpec
public abstract class AbstractSearchQueryPerfTest extends AbstractIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRODUCT_PREFIXprotected static java.lang.StringTEST_CATALOGprotected static java.lang.StringTEST_CATALOG_VERSION-
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 AbstractSearchQueryPerfTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertDocumentField(java.lang.Object expectedValue, Document document, java.lang.String field)protected voidcreateProducts(int productCount, int batchSize)protected SearchResultexecuteSearchQuery(java.util.function.Consumer<SearchQuery> action)protected voidindexProducts()protected voidloadData()protected voidupdateIndexType(java.lang.String indexedPropertyPrefix, int indexedPropertyCount, java.util.function.Consumer<SolrIndexedPropertyModel> action)-
Methods inherited from class de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getSolrSearchProviderFactory, 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
-
TEST_CATALOG
protected static final java.lang.String TEST_CATALOG
- See Also:
- Constant Field Values
-
TEST_CATALOG_VERSION
protected static final java.lang.String TEST_CATALOG_VERSION
- See Also:
- Constant Field Values
-
PRODUCT_PREFIX
public static final java.lang.String PRODUCT_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadData
protected void loadData() throws java.lang.Exception- Overrides:
loadDatain classAbstractIntegrationTest- Throws:
java.lang.Exception
-
updateIndexType
protected void updateIndexType(java.lang.String indexedPropertyPrefix, int indexedPropertyCount, java.util.function.Consumer<SolrIndexedPropertyModel> action) throws java.lang.Exception- Throws:
java.lang.Exception
-
createProducts
protected void createProducts(int productCount, int batchSize) throws java.lang.Exception- Throws:
java.lang.Exception
-
indexProducts
protected void indexProducts() throws java.lang.Exception- Throws:
java.lang.Exception
-
executeSearchQuery
protected SearchResult executeSearchQuery(java.util.function.Consumer<SearchQuery> action) throws java.lang.Exception
- Throws:
java.lang.Exception
-
assertDocumentField
protected void assertDocumentField(java.lang.Object expectedValue, Document document, java.lang.String field)
-
-