mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Search-2116: Removed redundant test and simplified a test
This commit is contained in:
+2
-9
@@ -59,13 +59,6 @@ public class SearchQueryPaginationTest extends AbstractCmisE2ETest
|
||||
Integer totalDocuments = response.getPagination().getTotalItems();
|
||||
Assert.assertFalse(response.getPagination().isHasMoreItems(), "Incorrect: hasMoreItems");
|
||||
|
||||
// Set skipCount = totalDocuments/2, maxItems = 1000
|
||||
response = performSearch(testUser, query, SearchLanguage.CMIS, setPaging(totalDocuments/2, 1000));
|
||||
|
||||
// Check getTotalItems is the same, hasMoreItems = False
|
||||
Assert.assertEquals(response.getPagination().getTotalItems(), totalDocuments, "Total Document Count doesn't match");
|
||||
Assert.assertFalse(response.getPagination().isHasMoreItems(), "Incorrect: hasMoreItems");
|
||||
|
||||
// Set skipCount = totalDocument, maxItems = 1000
|
||||
response = performSearch(testUser, query, SearchLanguage.CMIS, setPaging(totalDocuments, 1000));
|
||||
|
||||
@@ -80,8 +73,8 @@ public class SearchQueryPaginationTest extends AbstractCmisE2ETest
|
||||
Assert.assertEquals(response.getPagination().getTotalItems(), totalDocuments, "Total Document Count doesn't match");
|
||||
Assert.assertTrue(response.getPagination().isHasMoreItems(), "Incorrect: hasMoreItems");
|
||||
|
||||
// Set skipCount = totalDocuments/2-1, maxItems = totalDocuments/2
|
||||
response = performSearch(testUser, query, SearchLanguage.CMIS, setPaging(totalDocuments/2-1, totalDocuments/2));
|
||||
// Set skipCount = 1, maxItems = totalDocuments-2
|
||||
response = performSearch(testUser, query, SearchLanguage.CMIS, setPaging(1, totalDocuments-2));
|
||||
|
||||
// Check getTotalItems is the same, hasMoreItems = True
|
||||
Assert.assertEquals(response.getPagination().getTotalItems(), totalDocuments, "Total Document Count doesn't match");
|
||||
|
||||
Reference in New Issue
Block a user