From d29bc6927959cb0578495c72cea85f23e24c0ff7 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 23 Oct 2018 05:03:55 -0400 Subject: [PATCH] Fixed Tsumino ripper unit test --- .../ripme/tst/ripper/rippers/TsuminoRipperTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TsuminoRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TsuminoRipperTest.java index 7d403776..52c5900a 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TsuminoRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/TsuminoRipperTest.java @@ -11,22 +11,22 @@ import org.jsoup.nodes.Document; public class TsuminoRipperTest extends RippersTest { public void testTsuminoRipper() throws IOException { - TsuminoRipper ripper = new TsuminoRipper(new URL("http://www.tsumino.com/Book/Info/42882/chaldea-maid-")); + TsuminoRipper ripper = new TsuminoRipper(new URL("http://www.tsumino.com/Book/Info/43528/sore-wa-kurokute-suketeita-what-s-tight-and-black-and-sheer-all-over-")); testRipper(ripper); } public void testTagBlackList() throws IOException { - TsuminoRipper ripper = new TsuminoRipper(new URL("http://www.tsumino.com/Book/Info/42882/chaldea-maid-")); + TsuminoRipper ripper = new TsuminoRipper(new URL("http://www.tsumino.com/Book/Info/43528/sore-wa-kurokute-suketeita-what-s-tight-and-black-and-sheer-all-over-")); Document doc = ripper.getFirstPage(); List tagsOnPage = ripper.getTags(doc); - String[] tags1 = {"test", "one", "Blowjob"}; + String[] tags1 = {"test", "one", "Smell"}; String blacklistedTag = RipUtils.checkTags(tags1, tagsOnPage); - assertEquals("blowjob", blacklistedTag); + assertEquals("smell", blacklistedTag); // Test a tag with spaces - String[] tags2 = {"test", "one", "Full Color"}; + String[] tags2 = {"test", "one", "Face sitting"}; blacklistedTag = RipUtils.checkTags(tags2, tagsOnPage); - assertEquals("full color", blacklistedTag); + assertEquals("face sitting", blacklistedTag); // Test a album with no blacklisted tags String[] tags3 = {"nothing", "one", "null"};