Extended some unit tests to include getGid
This commit is contained in:
parent
a52bbeb6d8
commit
7b71a7d3f5
@ -17,4 +17,9 @@ public class EightmusesRipperTest extends RippersTest {
|
||||
ripper = new EightmusesRipper(new URL("https://www.8muses.com/comix/album/Blacknwhitecomics_com-Comix/BlacknWhiteComics/The-Mayor"));
|
||||
testRipper(ripper);
|
||||
}
|
||||
|
||||
public void testGID() throws IOException {
|
||||
EightmusesRipper ripper = new EightmusesRipper(new URL("https://www.8muses.com/comix/album/Affect3D-Comics/TheDude3DX/Lust-Unleashed-The-Urge-To-Explore"));
|
||||
assertEquals("Affect3D-Comics", ripper.getGID(new URL("https://www.8muses.com/comics/album/Affect3D-Comics/TheDude3DX/Lust-Unleashed-The-Urge-To-Explore")));
|
||||
}
|
||||
}
|
@ -10,4 +10,9 @@ public class ModelmayhemRipperTest extends RippersTest {
|
||||
ModelmayhemRipper ripper = new ModelmayhemRipper(new URL("https://www.modelmayhem.com/portfolio/520206/viewall"));
|
||||
testRipper(ripper);
|
||||
}
|
||||
|
||||
public void testGetGID() throws IOException {
|
||||
ModelmayhemRipper ripper = new ModelmayhemRipper(new URL("https://www.modelmayhem.com/portfolio/520206/viewall"));
|
||||
assertEquals("520206", ripper.getGID(new URL("https://www.modelmayhem.com/portfolio/520206/viewall")));
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,15 @@ public class MyhentaicomicsRipperTest extends RippersTest {
|
||||
MyhentaicomicsRipper ripper = new MyhentaicomicsRipper(new URL("http://myhentaicomics.com/index.php/Nienna-Lost-Tales"));
|
||||
testRipper(ripper);
|
||||
}
|
||||
|
||||
public void testGetGID() throws IOException {
|
||||
URL url = new URL("http://myhentaicomics.com/index.php/Nienna-Lost-Tales");
|
||||
MyhentaicomicsRipper ripper = new MyhentaicomicsRipper(url);
|
||||
// Test a comic
|
||||
assertEquals("Nienna-Lost-Tales", ripper.getGID(url));
|
||||
// Test a search
|
||||
assertEquals("test", ripper.getGID(new URL("http://myhentaicomics.com/index.php/search?q=test")));
|
||||
// Test a tag
|
||||
assertEquals("2409", ripper.getGID(new URL("http://myhentaicomics.com/index.php/tag/2409/")));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user