@Test(expected = UnsupportedOperationException.class) public void removeThrowsUnsupportedOperationException() throws UnsupportedOperationException { List<String> input = new LinkedList<>(); LazyPrimaryEntityIterator<PrimaryEntity> iterator = new LazyPrimaryEntityIterator<>(input, this.manager); iterator.remove(); }
@Override public void remove() { throw new UnsupportedOperationException(); }
LazyPrimaryEntityIterator implements Iterator<E> { @Override public void remove() { throw new UnsupportedOperationException(); } }
LazyPrimaryEntityIterator implements Iterator<E> { @Override public void remove() { throw new UnsupportedOperationException(); } LazyPrimaryEntityIterator(List<String> identifiers, PrimaryEntityManager<E> entityManager); }
LazyPrimaryEntityIterator implements Iterator<E> { @Override public void remove() { throw new UnsupportedOperationException(); } LazyPrimaryEntityIterator(List<String> identifiers, PrimaryEntityManager<E> entityManager); @Override boolean hasNext(); @Override E next(); @Override void remove(); }
LazyPrimaryEntityIterator implements Iterator<E> { @Override public void remove() { throw new UnsupportedOperationException(); } LazyPrimaryEntityIterator(List<String> identifiers, PrimaryEntityManager<E> entityManager); @Override boolean hasNext(); @Override E next(); @Override void remove();  }