Use comic loader for Business Cat filter test.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 10 Feb 2015 19:37:20 +0000 (20:37 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 10 Feb 2015 19:37:20 +0000 (20:37 +0100)
src/test/java/net/pterodactylus/rhynodge/filters/comics/BusinessCatComicFilterTest.java

index 5b9e916..077342c 100644 (file)
@@ -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