Class DefaultPaginatedFlexibleSearchServiceIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
-
- de.hybris.platform.servicelayer.search.paginated.impl.DefaultPaginatedFlexibleSearchServiceIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultPaginatedFlexibleSearchServiceIntegrationTest extends ServicelayerTransactionalBaseTest
Integration test forDefaultPaginatedFlexibleSearchService
.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultPaginatedFlexibleSearchServiceIntegrationTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSearchAndSortByUidAscendingWithVariousPagination
public void shouldSearchAndSortByUidAscendingWithVariousPagination()
-
shouldSearchAndSortByUidDescendingOrder
public void shouldSearchAndSortByUidDescendingOrder()
-
shouldSearchAndSortByUidDescendingOrderWithUpperCaseUid
public void shouldSearchAndSortByUidDescendingOrderWithUpperCaseUid()
-
shouldSearchAndSortByNameAscendingOrder
public void shouldSearchAndSortByNameAscendingOrder()
-
shouldSearchAndSortByNameAscendingOrderWithUpperCaseName
public void shouldSearchAndSortByNameAscendingOrderWithUpperCaseName()
-
shouldSearchAndSortByNameDescendingOrder
public void shouldSearchAndSortByNameDescendingOrder()
-
shouldSearchAndSortByNameAndUidAscendingOrder
public void shouldSearchAndSortByNameAndUidAscendingOrder()
-
shouldSearchAndSortByNameAscendingAndUidDescendingOrder
public void shouldSearchAndSortByNameAscendingAndUidDescendingOrder()
-
shouldSearchAndSortByNameAsendingOrderNotByDate
public void shouldSearchAndSortByNameAsendingOrderNotByDate()
-
shouldSearchAndFilterAllInvalidSorts
public void shouldSearchAndFilterAllInvalidSorts()
-
shouldSearchWithoutSorts
public void shouldSearchWithoutSorts()
-
shouldNotSearchIfParameterSearchPageDataIsNull
public void shouldNotSearchIfParameterSearchPageDataIsNull()
-
shouldNotSearchIfParameterFlexibleSearchQueryIsNull
public void shouldNotSearchIfParameterFlexibleSearchQueryIsNull()
-
shouldNotSearchIfParameterPaginationDataIsNull
public void shouldNotSearchIfParameterPaginationDataIsNull()
-
shouldNotSearchIfParameterPaginationDataCurrentPageIsNegative
public void shouldNotSearchIfParameterPaginationDataCurrentPageIsNegative()
-
shouldNotFailWithOverTheLimitPages
public void shouldNotFailWithOverTheLimitPages()
-
shouldNotFailWithOverTheLimitPagesAndNoTotal
public void shouldNotFailWithOverTheLimitPagesAndNoTotal()
-
shouldNotFailWithNoPages
public void shouldNotFailWithNoPages()
-
shouldNotFailWithNoPagesAndNoTotal
public void shouldNotFailWithNoPagesAndNoTotal()
-
shouldSearchWithoutTotal
public void shouldSearchWithoutTotal()
-
shouldSearchWithoutTotalFirstPage
public void shouldSearchWithoutTotalFirstPage()
-
shouldSearchWithoutTotalLastPage
public void shouldSearchWithoutTotalLastPage()
-
shouldSearchWithTotalFirstPage
public void shouldSearchWithTotalFirstPage()
-
shouldSearchWithTotalLastPage
public void shouldSearchWithTotalLastPage()
-
assertPaginationResults
protected void assertPaginationResults(int expectedPaginatedResultSize, int expectedTotalResultSize, int expectedSortSize, SearchPageData<UserGroupModel> searchResult)
Asserts the given searchPageData results to see if it has the expected result count based on requested pagination pageSize. Then also checks for the total results count and sort list count.- Parameters:
expectedPaginatedResultSize
- the expected result countexpectedTotalResultSize
- the expected total results of the search resultsexpectedSortSize
- the expected sort list sizesearchResult
- the searchResult
-
assertPaginationResults
protected void assertPaginationResults(int expectedPaginatedResultSize, int expectedTotalResultSize, int expectedSortSize, int expectedPageSize, int expectedCurrentPage, int expectedNumberOfPages, java.lang.Boolean expectedHasNextValue, java.lang.Boolean expectedHasPreviousValve, SearchPageData<UserGroupModel> searchResult)
-
-