implements TestRule
A TestRule to compare two instances of CheckpointCloseableIterables. null CheckpointCloseableIterable are considered equal. This rule iterates over the ApiOperations before comparing the checkpoint and pagination values.
Public Method Summary
| Statement |
apply(Statement base, Description description)
|
| boolean |
compare(CheckpointCloseableIterable<T> items1, CheckpointCloseableIterable<T> items2)
Compares instances of
CheckpointCloseableIterable. |
| static <T> CompareCheckpointCloseableIterableRule<T> |
getCompareRule()
Gets instance of
CheckpointCloseableIterableImpl.CompareCheckpointCloseableIterableRule. |
Inherited Method Summary
Public Methods
public Statement apply (Statement base, Description description)
Parameters
| base | |
|---|---|
| description |
public boolean compare (CheckpointCloseableIterable<T> items1, CheckpointCloseableIterable<T> items2)
Compares instances of CheckpointCloseableIterable. The comparison exhausts the
supplied iterable before comparing checkpoint and hasMore flag.
Parameters
| items1 | to compare |
|---|---|
| items2 | to compare |
Returns
- true if supplied CheckpointCloseableIterable match, false otherwise.
public static CompareCheckpointCloseableIterableRule<T> getCompareRule ()
Gets instance of CheckpointCloseableIterableImpl.CompareCheckpointCloseableIterableRule.