mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-29 08:40:37 +02:00
Added unit test for Myhentaicomics quickQueue
This commit is contained in:
@@ -21,4 +21,18 @@ public class MyhentaicomicsRipperTest extends RippersTest {
|
|||||||
// Test a tag
|
// Test a tag
|
||||||
assertEquals("2409", ripper.getGID(new URL("http://myhentaicomics.com/index.php/tag/2409/")));
|
assertEquals("2409", ripper.getGID(new URL("http://myhentaicomics.com/index.php/tag/2409/")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetAlbumsToQueue() throws IOException {
|
||||||
|
URL url = new URL("https://myhentaicomics.com/index.php/tag/3167/");
|
||||||
|
MyhentaicomicsRipper ripper = new MyhentaicomicsRipper(url);
|
||||||
|
assertEquals(15, ripper.getAlbumsToQueue(ripper.getFirstPage()).size());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testPageContainsAlbums() throws IOException {
|
||||||
|
URL url = new URL("https://myhentaicomics.com/index.php/tag/3167/");
|
||||||
|
URL url2 = new URL("https://myhentaicomics.com/index.php/search?q=test");
|
||||||
|
MyhentaicomicsRipper ripper = new MyhentaicomicsRipper(url);
|
||||||
|
assertTrue(ripper.pageContainsAlbums(url));
|
||||||
|
assertTrue(ripper.pageContainsAlbums(url2));
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user