From 963ae7460abd309e7c2069d9754956f404e586bf Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 15 Jun 2018 16:03:31 -0400 Subject: [PATCH] Added unittest for logging in to Furaffinity --- .../ripme/tst/ripper/rippers/FuraffinityRipperTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FuraffinityRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FuraffinityRipperTest.java index 90d66ecd..4982b40f 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FuraffinityRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FuraffinityRipperTest.java @@ -16,4 +16,12 @@ public class FuraffinityRipperTest extends RippersTest { FuraffinityRipper ripper = new FuraffinityRipper(url); assertEquals("mustardgas", ripper.getGID(url)); } + + public void testLogin() throws IOException { + URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/"); + FuraffinityRipper ripper = new FuraffinityRipper(url); + // Check if the first page contain the username of ripmes shared account + Boolean containsUsername = ripper.getFirstPage().html().contains("ripmethrowaway"); + assert containsUsername; + } }