PathAddressIterator implements Iterator<String> { @Override public boolean hasNext() { return iterator.hasNext(); } PathAddressIterator(PathAddress address); @Override boolean hasNext(); @Override String next(); PathAddress originalAddress(); PathAddress currentAddress(); @Override void remove(); static final PathAddressIterator EMPTY; }
@Test public void testEmptyPathIterator() { PathAddressIterator iterator = new PathAddressIterator(PathAddress.EMPTY_ADDRESS); assertFalse(iterator.hasNext()); }