mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Iterator.remove() has a default implementation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user