✅ Fix comic site filter test
[rhynodge.git] / src / test / java / net / pterodactylus / rhynodge / filters / ComicSiteFilterTest.java
index a449708..deff04a 100644 (file)
@@ -36,19 +36,11 @@ public class ComicSiteFilterTest {
        }
 
        @Test
-       public void htmlWithoutTitleIsNotRecognizedAsComic() {
-               State state = new HtmlState("http://foo/", null);
-               ComicSiteFilter comicSiteFilter = new TestComicSiteFilter(null, null, null);
-               State newState = comicSiteFilter.filter(state);
-               assertThat(newState instanceof ComicState, is(true));
-       }
-
-       @Test
-       public void htmlWithTitleButWithoutImagesIsNotRecognizedAsComic() {
+       public void htmlWithoutImagesIsNotRecognizedAsComic() {
                State state = new HtmlState("http://foo/", null);
                ComicSiteFilter comicSiteFilter = new TestComicSiteFilter("Title", Collections.<String>emptyList(), null);
                State newState = comicSiteFilter.filter(state);
-               assertThat(newState instanceof ComicState, is(true));
+               assertThat(newState.success(), is(false));
        }
 
        @Test