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:
@@ -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.FivehundredpxRipper;
|
import com.rarchives.ripme.ripper.rippers.FivehundredpxRipper;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
@@ -9,8 +10,8 @@ import org.junit.jupiter.api.Test;
|
|||||||
|
|
||||||
public class FivehundredpxRipperTest extends RippersTest {
|
public class FivehundredpxRipperTest extends RippersTest {
|
||||||
@Test @Disabled("Ripper is broken. See https://github.com/RipMeApp/ripme/issues/438")
|
@Test @Disabled("Ripper is broken. See https://github.com/RipMeApp/ripme/issues/438")
|
||||||
public void test500pxAlbum() throws IOException {
|
public void test500pxAlbum() throws IOException, URISyntaxException {
|
||||||
FivehundredpxRipper ripper = new FivehundredpxRipper(new URL("https://marketplace.500px.com/alexander_hurman"));
|
FivehundredpxRipper ripper = new FivehundredpxRipper(new URI("https://marketplace.500px.com/alexander_hurman").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -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.FlickrRipper;
|
import com.rarchives.ripme.ripper.rippers.FlickrRipper;
|
||||||
|
|
||||||
@@ -11,9 +12,9 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class FlickrRipperTest extends RippersTest {
|
public class FlickrRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Disabled("https://github.com/RipMeApp/ripme/issues/243")
|
@Disabled("https://github.com/RipMeApp/ripme/issues/243")
|
||||||
public void testFlickrAlbum() throws IOException {
|
public void testFlickrAlbum() throws IOException, URISyntaxException {
|
||||||
FlickrRipper ripper = new FlickrRipper(
|
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);
|
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.FolioRipper;
|
import com.rarchives.ripme.ripper.rippers.FolioRipper;
|
||||||
|
|
||||||
@@ -11,18 +13,17 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class FolioRipperTest extends RippersTest {
|
public class FolioRipperTest extends RippersTest {
|
||||||
/**
|
/**
|
||||||
* Test for folio.ink ripper
|
* Test for folio.ink ripper
|
||||||
* @throws IOException
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@Disabled("test or ripper broken")
|
@Disabled("test or ripper broken")
|
||||||
public void testFolioRip() throws IOException {
|
public void testFolioRip() throws IOException, URISyntaxException {
|
||||||
FolioRipper ripper = new FolioRipper(new URL("https://folio.ink/DmBe6i"));
|
FolioRipper ripper = new FolioRipper(new URI("https://folio.ink/DmBe6i").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetGID() throws IOException {
|
public void testGetGID() throws IOException, URISyntaxException {
|
||||||
URL url = new URL("https://folio.ink/DmBe6i");
|
URL url = new URI("https://folio.ink/DmBe6i").toURL();
|
||||||
FolioRipper ripper = new FolioRipper(url);
|
FolioRipper ripper = new FolioRipper(url);
|
||||||
Assertions.assertEquals("DmBe6i", ripper.getGID(url));
|
Assertions.assertEquals("DmBe6i", ripper.getGID(url));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user