@Test public void removeIsNotSupported() throws Exception { final Iterator<String> sut = createSut("block1"); try { sut.remove(); fail("Should not support remove"); } catch (final UnsupportedOperationException e) { } }
@Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); }
HeaderPartIterator implements Iterator<String> { @Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); } }
HeaderPartIterator implements Iterator<String> { @Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); } private  HeaderPartIterator(final String str); }
HeaderPartIterator implements Iterator<String> { @Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); } private  HeaderPartIterator(final String str); @Override boolean hasNext(); @Override String next(); @Override void remove(); }
HeaderPartIterator implements Iterator<String> { @Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); } private  HeaderPartIterator(final String str); @Override boolean hasNext(); @Override String next(); @Override void remove();  }