@Test public void testIterateEmptyRepairHistory() { Iterator<RepairEntry> repairEntryIterator = repairHistoryProvider.iterate(myTableReference, CLOCK_TIME, Predicates.<RepairEntry> alwaysTrue()); assertThat(repairEntryIterator.hasNext()).isFalse(); }
@Override public Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate) { long from = myClock.millis() - myLookbackTime; return iterate(tableReference, to, from, predicate); }
RepairHistoryProviderImpl implements RepairHistoryProvider { @Override public Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate) { long from = myClock.millis() - myLookbackTime; return iterate(tableReference, to, from, predicate); } }
RepairHistoryProviderImpl implements RepairHistoryProvider { @Override public Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate) { long from = myClock.millis() - myLookbackTime; return iterate(tableReference, to, from, predicate); } RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime); @VisibleForTesting  RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime, Clock clock); }
RepairHistoryProviderImpl implements RepairHistoryProvider { @Override public Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate) { long from = myClock.millis() - myLookbackTime; return iterate(tableReference, to, from, predicate); } RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime); @VisibleForTesting  RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime, Clock clock); @Override Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate); @Override Iterator<RepairEntry> iterate(TableReference tableReference, long to, long from, Predicate<RepairEntry> predicate); }
RepairHistoryProviderImpl implements RepairHistoryProvider { @Override public Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate) { long from = myClock.millis() - myLookbackTime; return iterate(tableReference, to, from, predicate); } RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime); @VisibleForTesting  RepairHistoryProviderImpl(Session session, StatementDecorator statementDecorator, long lookbackTime, Clock clock); @Override Iterator<RepairEntry> iterate(TableReference tableReference, long to, Predicate<RepairEntry> predicate); @Override Iterator<RepairEntry> iterate(TableReference tableReference, long to, long from, Predicate<RepairEntry> predicate);  }