@Test public void next() { Result result = new Result(expected); Assert.assertEquals(expected.get(0), result.next()); Assert.assertEquals(expected.get(1), result.next()); }
@Override public URL next() { if (hasNext()) return data.get(index++); else throw new NoSuchElementException("There are no elements size = " + data.size()); }
Result implements Iterator<URL> { @Override public URL next() { if (hasNext()) return data.get(index++); else throw new NoSuchElementException("There are no elements size = " + data.size()); } }
Result implements Iterator<URL> { @Override public URL next() { if (hasNext()) return data.get(index++); else throw new NoSuchElementException("There are no elements size = " + data.size()); } Result(List<URL> searched); }
Result implements Iterator<URL> { @Override public URL next() { if (hasNext()) return data.get(index++); else throw new NoSuchElementException("There are no elements size = " + data.size()); } Result(List<URL> searched); @Override URL next(); @Override boolean hasNext(); }
Result implements Iterator<URL> { @Override public URL next() { if (hasNext()) return data.get(index++); else throw new NoSuchElementException("There are no elements size = " + data.size()); } Result(List<URL> searched); @Override URL next(); @Override boolean hasNext();  }