From: David ‘Bombe’ Roden Date: Tue, 10 Feb 2015 19:37:20 +0000 (+0100) Subject: Use comic loader for Business Cat filter test. X-Git-Tag: v2~207 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=13f124359168c48e84f994e95819b32c993241a0;p=rhynodge.git Use comic loader for Business Cat filter test. --- diff --git a/src/test/java/net/pterodactylus/rhynodge/filters/comics/BusinessCatComicFilterTest.java b/src/test/java/net/pterodactylus/rhynodge/filters/comics/BusinessCatComicFilterTest.java index 5b9e916..077342c 100644 --- a/src/test/java/net/pterodactylus/rhynodge/filters/comics/BusinessCatComicFilterTest.java +++ b/src/test/java/net/pterodactylus/rhynodge/filters/comics/BusinessCatComicFilterTest.java @@ -19,13 +19,7 @@ public class BusinessCatComicFilterTest { private final Document document; public BusinessCatComicFilterTest() throws IOException { - document = loadDocument("business-cat.html", "http://www.businesscat.happyjar.com//"); - } - - private Document loadDocument(String resourceName, String baseUri) throws IOException { - InputStream inputStream = getClass().getResourceAsStream(resourceName); - Document document = Jsoup.parse(inputStream, "UTF-8", baseUri); - return document; + document = ComicLoader.loadDocument("business-cat.html", "http://www.businesscat.happyjar.com//"); } @Test