Class FlexibleSearchServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.servicelayer.search.FlexibleSearchServiceTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrandomizeStatuses(ArticleApprovalStatus... statuses) randomize the approval statuses for productsvoidsetUp()voidvoidvoidvoidvoidvoidtearDown()voidvoidvoidvoidvoidvoidThis method tests the usage of jalo classes vs.voidIf explicitly declared expected class as implementation ofHybrisEnumValueinstances of this type should be returned.voidGenerally if no result class provided search result should contain elements extending ItemModel In result for this test might not only Items but also enumeration values be returned, anyway it should not throw an exception and return all object asItemModel,EnumerationValueModelinstances.voidThis method tests the search for enumeration values but with different result classes for a multiple column list.voidThis method tests the search for enumeration values but with different result classes for a single column list.voidvoidThis test checks the differtent params for the searchranges for the servicelayer search against the jalo search.voidvoidvoidvoidvoidvoidvoidvoidvoidPLA-10781 test checks if the during flexibleSearchService.translate all needed attributes has been set up to local contextMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
FlexibleSearchServiceTest
public FlexibleSearchServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
public void tearDown() -
testSearchTypeInstancesWithoutParams
public void testSearchTypeInstancesWithoutParams() -
testSearchWithSingleParamsForLanguage
- Throws:
ConsistencyCheckException
-
testSearchWithSingleParams
public void testSearchWithSingleParams() -
testComplexSearch
public void testComplexSearch() -
testComplexSearch2
public void testComplexSearch2() -
testFailOnUnknownFields
public void testFailOnUnknownFields() -
testSearchResultInfos
public void testSearchResultInfos() -
testSearchRangeCombos
public void testSearchRangeCombos()This test checks the differtent params for the searchranges for the servicelayer search against the jalo search. There are (currently) 36 products in the db. The testcases should cover all possibilities: search with/without unlimited range, get a resultcount which fits/fits not in the overal result count (different starting points by a fixed result count). -
testMultiColumnSearch
public void testMultiColumnSearch() -
testPLA8496
public void testPLA8496()This method tests the usage of jalo classes vs. service layer model classes (and default java classes) for the search result class list. The same flexiblesearch statement is used for both searches and multicolumn. -
testPLA8827_single
public void testPLA8827_single()This method tests the search for enumeration values but with different result classes for a single column list. -
testPLA8827_items
public void testPLA8827_items()Generally if no result class provided search result should contain elements extending ItemModel In result for this test might not only Items but also enumeration values be returned, anyway it should not throw an exception and return all object asItemModel,EnumerationValueModelinstances. -
testPLA8827_hybris_enum
public void testPLA8827_hybris_enum()If explicitly declared expected class as implementation ofHybrisEnumValueinstances of this type should be returned. -
testPLA8827_multiple
public void testPLA8827_multiple()This method tests the search for enumeration values but with different result classes for a multiple column list. -
randomizeStatuses
randomize the approval statuses for products -
testPLA9192_ResultIsNullSearch
public void testPLA9192_ResultIsNullSearch() -
testTranslate
public void testTranslate() -
shouldThrowFlexibleSearchExceptionFromSlayerPackageWhenTranslationWillThrowJaloException
public void shouldThrowFlexibleSearchExceptionFromSlayerPackageWhenTranslationWillThrowJaloException() -
testTranslateWithCustomSession
public void testTranslateWithCustomSession()PLA-10781 test checks if the during flexibleSearchService.translate all needed attributes has been set up to local context -
testSearchUnique
public void testSearchUnique() -
testSearchUniqueFailsModelNotFound
public void testSearchUniqueFailsModelNotFound() -
testSearchUniqueFailsAmbiguousIdentifier
public void testSearchUniqueFailsAmbiguousIdentifier() -
testFindByApprovalStatus
public void testFindByApprovalStatus() -
shouldFindLanguageByItsLocalizedNames
public void shouldFindLanguageByItsLocalizedNames() -
shouldRespectSearchRestrictionsInTranslateMethod
- Throws:
Exception
-
shouldAddJdbcHintToTheQuery
public void shouldAddJdbcHintToTheQuery() -
shouldFireQueryWithHanaHints
public void shouldFireQueryWithHanaHints()
-