From b5ab5b9b9906ef04f379c719d77226466f65f3c1 Mon Sep 17 00:00:00 2001 From: Kevin Jiang Date: Sat, 9 Jun 2018 00:27:01 -0400 Subject: [PATCH] VSCO Tests Added a few tests for VSCORipper --- .../tst/ripper/rippers/VscoRipperTest.java | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java index 435c9aaa..799b4d09 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java @@ -7,19 +7,38 @@ import java.net.URL; public class VscoRipperTest extends RippersTest { /** - * Testing Rip. + * Testing single image. * @throws IOException */ - public void testSingleImageRip() throws IOException{ + public void testSingleImageRip() throws IOException { VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/minijello/media/571cd612542220261a123441")); testRipper(ripper); } + /** + * Tests profile rip. + * @throws IOException + */ + public void testProfileRip() throws IOException { + VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/jonathangodoy/images/1")); + testRipper(ripper); + } + + /** + * Prevents Bug #679 from happening again. + * https://github.com/RipMeApp/ripme/issues/679 + * @throws IOException + */ + public void testHyphenatedRip() throws IOException { + VscoRipper ripper = new VscoRipper(new URL("")); + testRipper(ripper); + } + /** * Make sure it names the folder something sensible. * @throws IOException */ - public void testGetGID() throws IOException{ + public void testGetGID() throws IOException { URL url = new URL("https://vsco.co/minijello/media/571cd612542220261a123441"); VscoRipper ripper = new VscoRipper(url);