1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-22 21:43:06 +02:00

new URI instead of new URL in tests, 3.

This commit is contained in:
soloturn
2023-06-13 06:29:36 +02:00
parent 42d9400cac
commit 854e7f4a51
3 changed files with 14 additions and 11 deletions

View File

@@ -1,7 +1,8 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import java.net.URI;
import java.net.URISyntaxException;
import com.rarchives.ripme.ripper.rippers.FivehundredpxRipper;
import org.junit.jupiter.api.Disabled;
@@ -9,8 +10,8 @@ import org.junit.jupiter.api.Test;
public class FivehundredpxRipperTest extends RippersTest {
@Test @Disabled("Ripper is broken. See https://github.com/RipMeApp/ripme/issues/438")
public void test500pxAlbum() throws IOException {
FivehundredpxRipper ripper = new FivehundredpxRipper(new URL("https://marketplace.500px.com/alexander_hurman"));
public void test500pxAlbum() throws IOException, URISyntaxException {
FivehundredpxRipper ripper = new FivehundredpxRipper(new URI("https://marketplace.500px.com/alexander_hurman").toURL());
testRipper(ripper);
}
}

View File

@@ -1,7 +1,8 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import java.net.URI;
import java.net.URISyntaxException;
import com.rarchives.ripme.ripper.rippers.FlickrRipper;
@@ -11,9 +12,9 @@ import org.junit.jupiter.api.Test;
public class FlickrRipperTest extends RippersTest {
@Test
@Disabled("https://github.com/RipMeApp/ripme/issues/243")
public void testFlickrAlbum() throws IOException {
public void testFlickrAlbum() throws IOException, URISyntaxException {
FlickrRipper ripper = new FlickrRipper(
new URL("https://www.flickr.com/photos/leavingallbehind/sets/72157621895942720/"));
new URI("https://www.flickr.com/photos/leavingallbehind/sets/72157621895942720/").toURL());
testRipper(ripper);
}

View File

@@ -1,6 +1,8 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.FolioRipper;
@@ -11,18 +13,17 @@ import org.junit.jupiter.api.Test;
public class FolioRipperTest extends RippersTest {
/**
* Test for folio.ink ripper
* @throws IOException
*/
@Test
@Disabled("test or ripper broken")
public void testFolioRip() throws IOException {
FolioRipper ripper = new FolioRipper(new URL("https://folio.ink/DmBe6i"));
public void testFolioRip() throws IOException, URISyntaxException {
FolioRipper ripper = new FolioRipper(new URI("https://folio.ink/DmBe6i").toURL());
testRipper(ripper);
}
@Test
public void testGetGID() throws IOException {
URL url = new URL("https://folio.ink/DmBe6i");
public void testGetGID() throws IOException, URISyntaxException {
URL url = new URI("https://folio.ink/DmBe6i").toURL();
FolioRipper ripper = new FolioRipper(url);
Assertions.assertEquals("DmBe6i", ripper.getGID(url));
}