Iterator.remove() has a default implementation

This commit is contained in:
Liam Newman
2020-02-23 21:29:36 -08:00
parent 9e8bbfd175
commit c60698ff7e
6 changed files with 8 additions and 20 deletions

View File

@@ -53,6 +53,14 @@ public class GitHubTest extends AbstractGitHubWireMockTest {
assertNotNull(r.getUrl());
assertNotEquals(0L, r.getId());
}
// ensure the iterator throws as expected
try {
itr.remove();
fail();
} catch (UnsupportedOperationException e) {
assertThat(e, notNullValue());
}
}
@Test