From: David ‘Bombe’ Roden Date: Wed, 26 Aug 2015 16:51:07 +0000 (+0200) Subject: Make tests match the new behaviour X-Git-Tag: v2~161 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4e247076ec5a30820f7cfc4e06dc22899085ff4c;p=rhynodge.git Make tests match the new behaviour --- diff --git a/src/test/java/net/pterodactylus/rhynodge/filters/ComicSiteFilterTest.java b/src/test/java/net/pterodactylus/rhynodge/filters/ComicSiteFilterTest.java index a449708..050f68c 100644 --- a/src/test/java/net/pterodactylus/rhynodge/filters/ComicSiteFilterTest.java +++ b/src/test/java/net/pterodactylus/rhynodge/filters/ComicSiteFilterTest.java @@ -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.emptyList(), null); State newState = comicSiteFilter.filter(state); - assertThat(newState instanceof ComicState, is(true)); + assertThat(newState.success(), is(false)); } @Test