We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 919ec00 commit a7c7845Copy full SHA for a7c7845
src/test/java/org/nibor/autolink/LinkExtractorIterableTest.java
@@ -35,6 +35,12 @@ public void nextThrowsNoSuchElementException() {
35
iterator.next();
36
}
37
38
+ @Test(expected = UnsupportedOperationException.class)
39
+ public void removeUnsupported() {
40
+ Iterable<LinkSpan> iterable = getSingleElementIterable();
41
+ iterable.iterator().remove();
42
+ }
43
+
44
private Iterable<LinkSpan> getSingleElementIterable() {
45
String input = "foo http://example.com";
46
return LinkExtractor.builder().build().extractLinks(input);
0 commit comments