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 - up to size + 1 and
additionally EntityQuery.ALL_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 Exception
public 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 Exception
public static <E extends Exception> void generateLimits(PagingTestsUtil.LimitsConsumer<E> consumer, int size) throws E extends Exception
consumer
with different start indexes and max results - up to size + 1
and
additionally EntityQuery.ALL_RESULTS
.E extends Exception
Copyright © 2020 Atlassian. All rights reserved.