@Test(expected = UnsupportedOperationException.class) public void removeThrowsUnsupportedOperationException() throws UnsupportedOperationException { List<Patient> input = new LinkedList<>(); SecurePatientIterator iterator = new SecurePatientIterator(input.iterator(), this.access, this.currentUser); iterator.remove(); }
@Override public void remove() { throw new UnsupportedOperationException(); }
SecurePatientIterator implements Iterator<Patient> { @Override public void remove() { throw new UnsupportedOperationException(); } }
SecurePatientIterator implements Iterator<Patient> { @Override public void remove() { throw new UnsupportedOperationException(); } SecurePatientIterator(Iterator<Patient> patientIterator, AuthorizationService access, User currentUser); }
SecurePatientIterator implements Iterator<Patient> { @Override public void remove() { throw new UnsupportedOperationException(); } SecurePatientIterator(Iterator<Patient> patientIterator, AuthorizationService access, User currentUser); @Override boolean hasNext(); @Override Patient next(); @Override void remove(); }
SecurePatientIterator implements Iterator<Patient> { @Override public void remove() { throw new UnsupportedOperationException(); } SecurePatientIterator(Iterator<Patient> patientIterator, AuthorizationService access, User currentUser); @Override boolean hasNext(); @Override Patient next(); @Override void remove();  }