RFileReaderIterator implements java.util.Iterator<Map.Entry<Key, Value>> { @Override public boolean hasNext() { return iteratorAfterIterators.hasTop(); } RFileReaderIterator(final Partition partition,
                               final TaskContext taskContext,
                               final Configuration configuration,
                               final Set<String> auths); @Override boolean hasNext(); @Override Map.Entry<Key, Value> next();  }
@Test public void initWithAnyConfigShouldNotHaveNextIterator() { final AccumuloTablet partition = new AccumuloTablet(0, 0, "a", "b"); final TaskContext taskContext = mock(TaskContext.class); final Set<String> auths = new HashSet<>(); final Configuration configuration = new Configuration(); configuration.set("any key", "blahh"); final RFileReaderIterator iterator = new RFileReaderIterator(partition, taskContext, configuration, auths); assertFalse(iterator.hasNext()); }
@Test public void initWithEmptyAccumuloTabletDoesNotHaveNextIterator() { final Partition partition = new AccumuloTablet(0, 0, "a", "b"); final TaskContext taskContext = mock(TaskContext.class); final Set<String> auths = new HashSet<>(); final RFileReaderIterator iterator = new RFileReaderIterator(partition, taskContext, new Configuration(), auths); assertFalse(iterator.hasNext()); }
@Test public void initWithNullAuthsDoesNotHaveNextIterator() { final Partition partition = new AccumuloTablet(0, 0, "a", "b"); final TaskContext taskContext = mock(TaskContext.class); final RFileReaderIterator iterator = new RFileReaderIterator(partition, taskContext, new Configuration(), null); assertFalse(iterator.hasNext()); }