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 93639f5 commit 00fddafCopy full SHA for 00fddaf
src/test/java/ru/mystamps/web/util/extractor/SiteParserTest.java
@@ -266,6 +266,20 @@ public void canParseShouldRequireNonNullMatchedUrl() {
266
parser.canParse(Random.url());
267
}
268
269
+ @Test
270
+ public void canParseWithUnsupportedUrl() {
271
+ parser.setMatchedUrl("http://example.org");
272
+
273
+ assertThat(parser.canParse("http://example.com/test/fail"), is(false));
274
+ }
275
276
277
+ public void canParseWithSupportedUrl() {
278
279
280
+ assertThat(parser.canParse("http://example.org/test/success"), is(true));
281
282
283
//
284
// Tests for parse()
285
0 commit comments