@Test public void shouldPerfomQueryWithNextCall() throws CoreTokenException { iterator.next(); verify(mockBuilder, atLeastOnce()).executeRawResults(); }
public Collection<Entry> next() { if (firstCall) { firstCall = false; } try { return queryPage(); } catch (CoreTokenException e) { throw new IllegalStateException(e); } }
QueryPageIterator implements Iterator<Collection<Entry>> { public Collection<Entry> next() { if (firstCall) { firstCall = false; } try { return queryPage(); } catch (CoreTokenException e) { throw new IllegalStateException(e); } } }
QueryPageIterator implements Iterator<Collection<Entry>> { public Collection<Entry> next() { if (firstCall) { firstCall = false; } try { return queryPage(); } catch (CoreTokenException e) { throw new IllegalStateException(e); } } QueryPageIterator(QueryBuilder builder, int pageSize); }
QueryPageIterator implements Iterator<Collection<Entry>> { public Collection<Entry> next() { if (firstCall) { firstCall = false; } try { return queryPage(); } catch (CoreTokenException e) { throw new IllegalStateException(e); } } QueryPageIterator(QueryBuilder builder, int pageSize); boolean hasNext(); Collection<Entry> next(); void remove(); }
QueryPageIterator implements Iterator<Collection<Entry>> { public Collection<Entry> next() { if (firstCall) { firstCall = false; } try { return queryPage(); } catch (CoreTokenException e) { throw new IllegalStateException(e); } } QueryPageIterator(QueryBuilder builder, int pageSize); boolean hasNext(); Collection<Entry> next(); void remove();  }