mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-20 04:31:55 +02:00
Update EromeRipperTest
This commit is contained in:
@@ -5,10 +5,12 @@ import java.net.URI;
|
|||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import com.rarchives.ripme.ripper.rippers.EromeRipper;
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
|
import org.junit.jupiter.api.Tag;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import com.rarchives.ripme.ripper.rippers.EromeRipper;
|
||||||
|
|
||||||
public class EromeRipperTest extends RippersTest {
|
public class EromeRipperTest extends RippersTest {
|
||||||
@Test
|
@Test
|
||||||
public void testGetGIDProfilePage() throws IOException, URISyntaxException {
|
public void testGetGIDProfilePage() throws IOException, URISyntaxException {
|
||||||
@@ -16,18 +18,21 @@ public class EromeRipperTest extends RippersTest {
|
|||||||
EromeRipper ripper = new EromeRipper(url);
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
Assertions.assertEquals("Jay-Jenna", ripper.getGID(url));
|
Assertions.assertEquals("Jay-Jenna", ripper.getGID(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetGIDAlbum() throws IOException, URISyntaxException {
|
public void testGetGIDAlbum() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.erome.com/a/KbDAM1XT").toURL();
|
URL url = new URI("https://www.erome.com/a/KbDAM1XT").toURL();
|
||||||
EromeRipper ripper = new EromeRipper(url);
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
Assertions.assertEquals("KbDAM1XT", ripper.getGID(url));
|
Assertions.assertEquals("KbDAM1XT", ripper.getGID(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetAlbumsToQueue() throws IOException, URISyntaxException {
|
public void testGetAlbumsToQueue() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.erome.com/Jay-Jenna").toURL();
|
URL url = new URI("https://www.erome.com/Jay-Jenna").toURL();
|
||||||
EromeRipper ripper = new EromeRipper(url);
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
assert (2 >= ripper.getAlbumsToQueue(ripper.getFirstPage()).size());
|
assert (2 >= ripper.getAlbumsToQueue(ripper.getFirstPage()).size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testPageContainsAlbums() throws IOException, URISyntaxException {
|
public void testPageContainsAlbums() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.erome.com/Jay-Jenna").toURL();
|
URL url = new URI("https://www.erome.com/Jay-Jenna").toURL();
|
||||||
@@ -36,11 +41,21 @@ public class EromeRipperTest extends RippersTest {
|
|||||||
assert (!ripper.pageContainsAlbums(new URI("https://www.erome.com/a/KbDAM1XT").toURL()));
|
assert (!ripper.pageContainsAlbums(new URI("https://www.erome.com/a/KbDAM1XT").toURL()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testRip() throws IOException, URISyntaxException {
|
public void testRip() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.erome.com/a/vlefBdsg").toURL();
|
URL url = new URI("https://www.erome.com/a/Tak8F2h6").toURL();
|
||||||
EromeRipper ripper = new EromeRipper(url);
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Tag("slow")
|
||||||
|
public void testVideoAlbumRip() throws IOException, URISyntaxException {
|
||||||
|
URL url = new URI("https://www.erome.com/a/P0x5Ambn").toURL();
|
||||||
|
EromeRipper ripper = new EromeRipper(url);
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetURLsFromPage() throws IOException, URISyntaxException {
|
public void testGetURLsFromPage() throws IOException, URISyntaxException {
|
||||||
URL url = new URI("https://www.erome.com/a/Tak8F2h6").toURL();
|
URL url = new URI("https://www.erome.com/a/Tak8F2h6").toURL();
|
||||||
|
Reference in New Issue
Block a user