From e909793dccef6a05a0a114017e7a147d3a5ee5c2 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Mon, 31 Dec 2018 08:09:04 -0500 Subject: [PATCH] Added unit test for getAlbumTitle --- .../ripme/tst/ripper/rippers/ImagefapRipperTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ImagefapRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ImagefapRipperTest.java index 95649015..b64952cc 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ImagefapRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ImagefapRipperTest.java @@ -24,4 +24,9 @@ public class ImagefapRipperTest extends RippersTest { testRipper(ripper); } } + public void testImagefapGetAlbumTitle() throws IOException { + URL url = new URL("https://www.imagefap.com/gallery.php?gid=7789753"); + ImagefapRipper ripper = new ImagefapRipper(url); + assertEquals("imagefap_Red.Heels.Lover.In.Love_7789753", ripper.getAlbumTitle(url)); + } }