mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-22 13:33:18 +02:00
new URI instead of new URL in tests, 4.
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.GirlsOfDesireRipper;
|
import com.rarchives.ripme.ripper.rippers.GirlsOfDesireRipper;
|
||||||
import org.junit.jupiter.api.Tag;
|
import org.junit.jupiter.api.Tag;
|
||||||
@@ -10,8 +11,8 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class GirlsOfDesireRipperTest extends RippersTest {
|
public class GirlsOfDesireRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
public void testGirlsofdesireAlbum() throws IOException {
|
public void testGirlsofdesireAlbum() throws IOException, URISyntaxException {
|
||||||
GirlsOfDesireRipper ripper = new GirlsOfDesireRipper(new URL("http://www.girlsofdesire.org/galleries/krillia/"));
|
GirlsOfDesireRipper ripper = new GirlsOfDesireRipper(new URI("http://www.girlsofdesire.org/galleries/krillia/").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.HbrowseRipper;
|
import com.rarchives.ripme.ripper.rippers.HbrowseRipper;
|
||||||
import org.junit.jupiter.api.Tag;
|
import org.junit.jupiter.api.Tag;
|
||||||
@@ -10,8 +11,8 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class HbrowseRipperTest extends RippersTest {
|
public class HbrowseRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
public void testPahealRipper() throws IOException {
|
public void testPahealRipper() throws IOException, URISyntaxException {
|
||||||
HbrowseRipper ripper = new HbrowseRipper(new URL("https://www.hbrowse.com/21013/c00001"));
|
HbrowseRipper ripper = new HbrowseRipper(new URI("https://www.hbrowse.com/21013/c00001").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.Hentai2readRipper;
|
import com.rarchives.ripme.ripper.rippers.Hentai2readRipper;
|
||||||
import org.junit.jupiter.api.Tag;
|
import org.junit.jupiter.api.Tag;
|
||||||
@@ -10,8 +11,8 @@ import org.junit.jupiter.api.Test;
|
|||||||
public class Hentai2readRipperTest extends RippersTest {
|
public class Hentai2readRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
public void testHentai2readAlbum() throws IOException {
|
public void testHentai2readAlbum() throws IOException, URISyntaxException {
|
||||||
Hentai2readRipper ripper = new Hentai2readRipper(new URL("https://hentai2read.com/sm_school_memorial/1/"));
|
Hentai2readRipper ripper = new Hentai2readRipper(new URI("https://hentai2read.com/sm_school_memorial/1/").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.HentaiCafeRipper;
|
import com.rarchives.ripme.ripper.rippers.HentaiCafeRipper;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
@@ -12,16 +13,16 @@ public class HentaicafeRipperTest extends RippersTest {
|
|||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
@Disabled("20/05/2021 This test was disabled as the site has experienced notable downtime")
|
@Disabled("20/05/2021 This test was disabled as the site has experienced notable downtime")
|
||||||
public void testHentaiCafeAlbum() throws IOException {
|
public void testHentaiCafeAlbum() throws IOException, URISyntaxException {
|
||||||
HentaiCafeRipper ripper = new HentaiCafeRipper(new URL("https://hentai.cafe/kikuta-the-oni-in-the-room/"));
|
HentaiCafeRipper ripper = new HentaiCafeRipper(new URI("https://hentai.cafe/kikuta-the-oni-in-the-room/").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
// This album has a line break (<br />) in the url. Test it to make sure ripme can handle these invalid urls
|
// This album has a line break (<br />) in the url. Test it to make sure ripme can handle these invalid urls
|
||||||
@Test
|
@Test
|
||||||
@Tag("flaky")
|
@Tag("flaky")
|
||||||
@Disabled("20/05/2021 This test was disabled as the site has experienced notable downtime")
|
@Disabled("20/05/2021 This test was disabled as the site has experienced notable downtime")
|
||||||
public void testAlbumWithInvalidChars() throws IOException {
|
public void testAlbumWithInvalidChars() throws IOException, URISyntaxException {
|
||||||
HentaiCafeRipper ripper = new HentaiCafeRipper(new URL("https://hentai.cafe/chobipero-club/"));
|
HentaiCafeRipper ripper = new HentaiCafeRipper(new URI("https://hentai.cafe/chobipero-club/").toURL());
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user