Make tests match the new behaviour
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 16:51:07 +0000 (18:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 16:51:07 +0000 (18:51 +0200)
src/test/java/net/pterodactylus/rhynodge/filters/ComicSiteFilterTest.java

index a449708..050f68c 100644 (file)
@@ -40,7 +40,7 @@ public class ComicSiteFilterTest {
                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));
+               assertThat(newState.success(), is(false));
        }
 
        @Test
@@ -48,7 +48,7 @@ public class ComicSiteFilterTest {
                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