public class PagingTestsUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PagingTestsUtil.LimitsConsumer<E extends Exception> |
static interface |
PagingTestsUtil.Searcher<T,E extends Exception> |
| Constructor and Description |
|---|
PagingTestsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Exception> |
generateLimits(PagingTestsUtil.LimitsConsumer<E> consumer,
int size)
Calls
consumer with different start indexes and max results. |
static <T,E extends Exception> |
validatePaging(PagingTestsUtil.Searcher<T,E> searcher)
Validates that
searcher returns correct sublist of results of unbounded query when queried with
different start index and max results. |
static <T,E extends Exception> |
validatePaging(PagingTestsUtil.Searcher<T,E> searcher,
List<T> allResults)
Validates that
searcher returns correct sublist of allResults when queried with
different start index and max results. |
public static <T,E extends Exception> void validatePaging(PagingTestsUtil.Searcher<T,E> searcher) throws E extends Exception
searcher returns correct sublist of results of unbounded query when queried with
different start index and max results.E extends Exceptionpublic static <T,E extends Exception> void validatePaging(PagingTestsUtil.Searcher<T,E> searcher, List<T> allResults) throws E extends Exception
searcher returns correct sublist of allResults when queried with
different start index and max results.E extends Exceptionpublic static <E extends Exception> void generateLimits(PagingTestsUtil.LimitsConsumer<E> consumer, int size) throws E extends Exception
consumer with different start indexes and max results.E extends ExceptionCopyright © 2021 Atlassian. All rights reserved.