1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-19 12:11:40 +02:00

Update EromeRipperTest

This commit is contained in:
MetaPrime
2025-04-19 23:23:40 -07:00
parent 7bbaff0211
commit 0501f64e0c

View File

@@ -5,10 +5,12 @@ import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.EromeRipper;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import com.rarchives.ripme.ripper.rippers.EromeRipper;
public class EromeRipperTest extends RippersTest {
@Test
public void testGetGIDProfilePage() throws IOException, URISyntaxException {
@@ -16,18 +18,21 @@ public class EromeRipperTest extends RippersTest {
EromeRipper ripper = new EromeRipper(url);
Assertions.assertEquals("Jay-Jenna", ripper.getGID(url));
}
@Test
public void testGetGIDAlbum() throws IOException, URISyntaxException {
URL url = new URI("https://www.erome.com/a/KbDAM1XT").toURL();
EromeRipper ripper = new EromeRipper(url);
Assertions.assertEquals("KbDAM1XT", ripper.getGID(url));
}
@Test
public void testGetAlbumsToQueue() throws IOException, URISyntaxException {
URL url = new URI("https://www.erome.com/Jay-Jenna").toURL();
EromeRipper ripper = new EromeRipper(url);
assert (2 >= ripper.getAlbumsToQueue(ripper.getFirstPage()).size());
}
@Test
public void testPageContainsAlbums() throws IOException, URISyntaxException {
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()));
}
@Test
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);
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
public void testGetURLsFromPage() throws IOException, URISyntaxException {
URL url = new URI("https://www.erome.com/a/Tak8F2h6").toURL();