CheckpointCloseableIterableImpl.CompareCheckpointCloseableIterableRule

public static class CheckpointCloseableIterableImpl.CompareCheckpointCloseableIterableRule extends Object
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
static <T> CompareCheckpointCloseableIterableRule<T>

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.

Send feedback about...

Cloud Search
Cloud Search