mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-20 12:42:06 +02:00
new URI instead of new URL in tests, 5.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
package com.rarchives.ripme.tst.ripper.rippers;
|
package com.rarchives.ripme.tst.ripper.rippers;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URI;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.FooktubeRipper;
|
import com.rarchives.ripme.ripper.rippers.FooktubeRipper;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
@@ -10,8 +11,8 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class FooktubeRipperTest extends RippersTest {
|
public class FooktubeRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Disabled("test or ripper broken")
|
@Disabled("test or ripper broken")
|
||||||
public void testFooktubeVideo() throws IOException {
|
public void testFooktubeVideo() throws IOException, URISyntaxException {
|
||||||
FooktubeRipper ripper = new FooktubeRipper(new URL("https://fooktube.com/video/641/in-the-cinema")); //pick any video from the front page
|
FooktubeRipper ripper = new FooktubeRipper(new URI("https://fooktube.com/video/641/in-the-cinema").toURL()); //pick any video from the front page
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
package com.rarchives.ripme.tst.ripper.rippers;
|
package com.rarchives.ripme.tst.ripper.rippers;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.FuraffinityRipper;
|
import com.rarchives.ripme.ripper.rippers.FuraffinityRipper;
|
||||||
@@ -11,26 +13,26 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class FuraffinityRipperTest extends RippersTest {
|
public class FuraffinityRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("slow")
|
@Tag("slow")
|
||||||
public void testFuraffinityAlbum() throws IOException {
|
public void testFuraffinityAlbum() throws IOException, URISyntaxException {
|
||||||
FuraffinityRipper ripper = new FuraffinityRipper(new URL("https://www.furaffinity.net/gallery/spencerdragon/"));
|
FuraffinityRipper ripper = new FuraffinityRipper(new URI("https://www.furaffinity.net/gallery/spencerdragon/").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
@Tag("slow")
|
@Tag("slow")
|
||||||
public void testFuraffinityScrap() throws IOException {
|
public void testFuraffinityScrap() throws IOException, URISyntaxException {
|
||||||
FuraffinityRipper ripper = new FuraffinityRipper(new URL("http://www.furaffinity.net/scraps/sssonic2/"));
|
FuraffinityRipper ripper = new FuraffinityRipper(new URI("http://www.furaffinity.net/scraps/sssonic2/").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetGID() throws IOException {
|
public void testGetGID() throws IOException, URISyntaxException {
|
||||||
URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/");
|
URL url = new URI("https://www.furaffinity.net/gallery/mustardgas/").toURL();
|
||||||
FuraffinityRipper ripper = new FuraffinityRipper(url);
|
FuraffinityRipper ripper = new FuraffinityRipper(url);
|
||||||
Assertions.assertEquals("mustardgas", ripper.getGID(url));
|
Assertions.assertEquals("mustardgas", ripper.getGID(url));
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
public void testLogin() throws IOException {
|
public void testLogin() throws IOException, URISyntaxException {
|
||||||
URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/");
|
URL url = new URI("https://www.furaffinity.net/gallery/mustardgas/").toURL();
|
||||||
FuraffinityRipper ripper = new FuraffinityRipper(url);
|
FuraffinityRipper ripper = new FuraffinityRipper(url);
|
||||||
// Check if the first page contain the username of ripmes shared account
|
// Check if the first page contain the username of ripmes shared account
|
||||||
boolean containsUsername = ripper.getFirstPage().html().contains("ripmethrowaway");
|
boolean containsUsername = ripper.getFirstPage().html().contains("ripmethrowaway");
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
package com.rarchives.ripme.tst.ripper.rippers;
|
package com.rarchives.ripme.tst.ripper.rippers;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URI;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.FuskatorRipper;
|
import com.rarchives.ripme.ripper.rippers.FuskatorRipper;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
@@ -10,14 +11,14 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class FuskatorRipperTest extends RippersTest {
|
public class FuskatorRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Disabled("test or ripper broken")
|
@Disabled("test or ripper broken")
|
||||||
public void testFuskatorAlbum() throws IOException {
|
public void testFuskatorAlbum() throws IOException, URISyntaxException {
|
||||||
FuskatorRipper ripper = new FuskatorRipper(new URL("https://fuskator.com/thumbs/hqt6pPXAf9z/Shaved-Blonde-Babe-Katerina-Ambre.html"));
|
FuskatorRipper ripper = new FuskatorRipper(new URI("https://fuskator.com/thumbs/hqt6pPXAf9z/Shaved-Blonde-Babe-Katerina-Ambre.html").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
@Disabled("test or ripper broken")
|
@Disabled("test or ripper broken")
|
||||||
public void testUrlsWithTiled() throws IOException {
|
public void testUrlsWithTiled() throws IOException, URISyntaxException {
|
||||||
FuskatorRipper ripper = new FuskatorRipper(new URL("https://fuskator.com/thumbs/hsrzk~UIFmJ/Blonde-Babe-Destiny-Dixon-Playing-With-Black-Dildo.html"));
|
FuskatorRipper ripper = new FuskatorRipper(new URI("https://fuskator.com/thumbs/hsrzk~UIFmJ/Blonde-Babe-Destiny-Dixon-Playing-With-Black-Dildo.html").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
package com.rarchives.ripme.tst.ripper.rippers;
|
package com.rarchives.ripme.tst.ripper.rippers;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.GfycatporntubeRipper;
|
import com.rarchives.ripme.ripper.rippers.GfycatporntubeRipper;
|
||||||
@@ -11,14 +13,14 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class GfycatporntubeRipperTest extends RippersTest {
|
public class GfycatporntubeRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
public void testRip() throws IOException {
|
public void testRip() throws IOException, URISyntaxException {
|
||||||
GfycatporntubeRipper ripper = new GfycatporntubeRipper(new URL("https://gfycatporntube.com/blowjob-bunny-puts-on-a-show/"));
|
GfycatporntubeRipper ripper = new GfycatporntubeRipper(new URI("https://gfycatporntube.com/blowjob-bunny-puts-on-a-show/").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetGID() throws IOException {
|
public void testGetGID() throws IOException, URISyntaxException {
|
||||||
URL url = new URL("https://gfycatporntube.com/blowjob-bunny-puts-on-a-show/");
|
URL url = new URI("https://gfycatporntube.com/blowjob-bunny-puts-on-a-show/").toURL();
|
||||||
GfycatporntubeRipper ripper = new GfycatporntubeRipper(url);
|
GfycatporntubeRipper ripper = new GfycatporntubeRipper(url);
|
||||||
Assertions.assertEquals("blowjob-bunny-puts-on-a-show", ripper.getGID(url));
|
Assertions.assertEquals("blowjob-bunny-puts-on-a-show", ripper.getGID(url));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user