From c14f26feb1727742f84e264bf0e24a535b75138a Mon Sep 17 00:00:00 2001 From: Kevin Jiang Date: Sun, 14 Jan 2018 15:21:26 -0500 Subject: [PATCH] VSCO Ripper Single Image Currently can only support ripping a single Image. More study will be needed to rip member profiles and collections. (Maybe JSON?) --- .../tst/ripper/rippers/VscoRipperTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java 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 new file mode 100644 index 00000000..15a5eeef --- /dev/null +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java @@ -0,0 +1,23 @@ +package com.rarchives.ripme.tst.ripper.rippers; + +import com.rarchives.ripme.ripper.rippers.VscoRipper; +import java.io.IOException; +import java.net.URL; + +public class VscoRipperTest extends RippersTest { + + + public void testSingleImageRip() throws IOException{ + VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/minijello/media/571cd612542220261a123441")); + testRipper(ripper); + } + + public void testGetGID() throws IOException{ + URL url = new URL("https://vsco.co/minijello/media/571cd612542220261a123441"); + + VscoRipper ripper = new VscoRipper(url); + + assertEquals("Failed to get GID", "minijello/571cd", ripper.getGID(url)); + } + +}