Class DefaultPaginatedFlexibleSearchServiceIntegrationTest

    • Constructor Detail

      • DefaultPaginatedFlexibleSearchServiceIntegrationTest

        public DefaultPaginatedFlexibleSearchServiceIntegrationTest()
    • 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 count
        expectedTotalResultSize - the expected total results of the search results
        expectedSortSize - the expected sort list size
        searchResult - 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)