From 13f124359168c48e84f994e95819b32c993241a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 10 Feb 2015 20:37:20 +0100 Subject: [PATCH] Use comic loader for Business Cat filter test. --- .../rhynodge/filters/comics/BusinessCatComicFilterTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.7.4