From 7102bdec6f478c21521c84ddf6bacbf5fd265c13 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Mon, 18 Jun 2018 11:37:24 -0400 Subject: [PATCH] Added PicstatioRipper unit test --- .../ripper/rippers/PicstatioRipperTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/java/com/rarchives/ripme/tst/ripper/rippers/PicstatioRipperTest.java diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/PicstatioRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/PicstatioRipperTest.java new file mode 100644 index 00000000..606cd569 --- /dev/null +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/PicstatioRipperTest.java @@ -0,0 +1,19 @@ +package com.rarchives.ripme.tst.ripper.rippers; + +import java.io.IOException; +import java.net.URL; + +import com.rarchives.ripme.ripper.rippers.PicstatioRipper; + +public class PicstatioRipperTest extends RippersTest { + + public void testRip() throws IOException { + PicstatioRipper ripper = new PicstatioRipper(new URL("https://www.picstatio.com/aerial-view-wallpapers")); + testRipper(ripper); + } + + public void testGID() throws IOException { + PicstatioRipper ripper = new PicstatioRipper(new URL("https://www.picstatio.com/aerial-view-wallpapers")); + assertEquals("aerial-view-wallpapers", ripper.getGID(new URL("https://www.picstatio.com/aerial-view-wallpapers"))); + } +} \ No newline at end of file