From d0b93ea1009e348907044f6aefdf17e6e11e0bee Mon Sep 17 00:00:00 2001 From: Kevin Jiang Date: Fri, 5 Jan 2018 17:11:24 -0500 Subject: [PATCH] Gfycat Tests & Fix for bad reddit submissions Added and restructured Gfycat tests. - Rips from reddit go in Reddit Test Suite - Direct rips from Gfycat go in the Gfycat Test Suite Task #361 - Some gfycat doesn't work --- .../tst/ripper/rippers/GfycatRipperTest.java | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java index 5c099aca..ca73f138 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java @@ -8,25 +8,19 @@ import java.net.URL; public class GfycatRipperTest extends RippersTest { /** - * REDDIT TEST - * Tests a good GfycatURL (no "/gifs/detail") + * Rips correctly formatted URL directly from Gfycat * @throws IOException */ - public void testRedditGfyGoodURL() throws IOException { - GfycatRipper ripper = new GfycatRipper(new URL("https://www.reddit.com/r/bottesting/comments/7msozf/good_link/")); + public void GfycatGoodURL() throws IOException{ + GfycatRipper ripper = new GfycatRipper(new URL("https://gfycat.com/TemptingExcellentIchthyosaurs")); testRipper(ripper); } - - /** - * REDDIT TEST - * Tests a Bad URL with the "/gifs/detail" inside. + * Rips badly formatted URL directly from Gfycat * @throws IOException */ - public void testRedditGfyBadURL() throws IOException { - GfycatRipper ripper = new GfycatRipper(new URL("https://www.reddit.com/r/bottesting/comments/7msmhi/bad_link/")); + public void GfycatBadURL() throws IOException { + GfycatRipper ripper = new GfycatRipper(new URL("https://gfycat.com/gifs/detail/limitedtestyamericancrow")); testRipper(ripper); } - - -} +} \ No newline at end of file