Added more unit tests
This commit is contained in:
parent
f8176a8143
commit
fab905e4bc
@ -13,4 +13,10 @@ public class ShesFreakyRipperTest extends RippersTest {
|
|||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://www.shesfreaky.com/gallery/nicee-snow-bunny-579NbPjUcYa.html");
|
||||||
|
ShesFreakyRipper ripper = new ShesFreakyRipper(url);
|
||||||
|
assertEquals("nicee-snow-bunny-579NbPjUcYa", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,10 @@ public class SinfestRipperTest extends RippersTest {
|
|||||||
SinfestRipper ripper = new SinfestRipper(new URL("http://sinfest.net/view.php?date=2000-01-17"));
|
SinfestRipper ripper = new SinfestRipper(new URL("http://sinfest.net/view.php?date=2000-01-17"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://sinfest.net/view.php?date=2000-01-17");
|
||||||
|
SinfestRipper ripper = new SinfestRipper(url);
|
||||||
|
assertEquals("2000-01-17", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
@ -10,4 +10,10 @@ public class SinnercomicsRipperTest extends RippersTest {
|
|||||||
SinnercomicsRipper ripper = new SinnercomicsRipper(new URL("https://sinnercomics.com/comic/beyond-the-hotel-page-01/"));
|
SinnercomicsRipper ripper = new SinnercomicsRipper(new URL("https://sinnercomics.com/comic/beyond-the-hotel-page-01/"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("https://sinnercomics.com/comic/beyond-the-hotel-page-01/");
|
||||||
|
SinnercomicsRipper ripper = new SinnercomicsRipper(url);
|
||||||
|
assertEquals("beyond-the-hotel", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
@ -10,4 +10,10 @@ public class SmuttyRipperTest extends RippersTest {
|
|||||||
SmuttyRipper ripper = new SmuttyRipper(new URL("https://smutty.com/user/QUIGON/"));
|
SmuttyRipper ripper = new SmuttyRipper(new URL("https://smutty.com/user/QUIGON/"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("https://smutty.com/user/QUIGON/");
|
||||||
|
SmuttyRipper ripper = new SmuttyRipper(url);
|
||||||
|
assertEquals("QUIGON", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,10 @@ public class StaRipperTest extends RippersTest {
|
|||||||
StaRipper ripper = new StaRipper(new URL("https://sta.sh/2hn9rtavr1g"));
|
StaRipper ripper = new StaRipper(new URL("https://sta.sh/2hn9rtavr1g"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("https://sta.sh/2hn9rtavr1g");
|
||||||
|
StaRipper ripper = new StaRipper(url);
|
||||||
|
assertEquals("2hn9rtavr1g", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
@ -10,4 +10,10 @@ public class TapasticRipperTest extends RippersTest {
|
|||||||
TapasticRipper ripper = new TapasticRipper(new URL("https://tapas.io/series/tsiwbakd-comic"));
|
TapasticRipper ripper = new TapasticRipper(new URL("https://tapas.io/series/tsiwbakd-comic"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("https://tapas.io/series/tsiwbakd-comic");
|
||||||
|
TapasticRipper ripper = new TapasticRipper(url);
|
||||||
|
assertEquals("series_ tsiwbakd-comic", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,10 @@ public class TeenplanetRipperTest extends RippersTest {
|
|||||||
TeenplanetRipper ripper = new TeenplanetRipper(new URL("http://teenplanet.org/galleries/the-perfect-side-of-me-6588.html"));
|
TeenplanetRipper ripper = new TeenplanetRipper(new URL("http://teenplanet.org/galleries/the-perfect-side-of-me-6588.html"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://teenplanet.org/galleries/the-perfect-side-of-me-6588.html");
|
||||||
|
TeenplanetRipper ripper = new TeenplanetRipper(url);
|
||||||
|
assertEquals("the-perfect-side-of-me-6588", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,5 +10,11 @@ public class VidbleRipperTest extends RippersTest {
|
|||||||
VidbleRipper ripper = new VidbleRipper(new URL("http://www.vidble.com/album/y1oyh3zd"));
|
VidbleRipper ripper = new VidbleRipper(new URL("http://www.vidble.com/album/y1oyh3zd"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://www.vidble.com/album/y1oyh3zd");
|
||||||
|
VidbleRipper ripper = new VidbleRipper(url);
|
||||||
|
assertEquals("y1oyh3zd", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,4 +10,10 @@ public class XbooruRipperTest extends RippersTest {
|
|||||||
XbooruRipper ripper = new XbooruRipper(new URL("http://xbooru.com/index.php?page=post&s=list&tags=furry"));
|
XbooruRipper ripper = new XbooruRipper(new URL("http://xbooru.com/index.php?page=post&s=list&tags=furry"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://xbooru.com/index.php?page=post&s=list&tags=furry");
|
||||||
|
XbooruRipper ripper = new XbooruRipper(url);
|
||||||
|
assertEquals("furry", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
@ -16,4 +16,10 @@ public class XhamsterRipperTest extends RippersTest {
|
|||||||
XhamsterRipper ripper = new XhamsterRipper(new URL("https://xhamster.com/photos/gallery/japanese-dolls-4-asahi-mizuno-7254664"));
|
XhamsterRipper ripper = new XhamsterRipper(new URL("https://xhamster.com/photos/gallery/japanese-dolls-4-asahi-mizuno-7254664"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("https://xhamster.com/photos/gallery/japanese-dolls-4-asahi-mizuno-7254664");
|
||||||
|
XhamsterRipper ripper = new XhamsterRipper(url);
|
||||||
|
assertEquals("7254664", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,4 +16,10 @@ public class YuvutuRipperTest extends RippersTest {
|
|||||||
YuvutuRipper ripper = new YuvutuRipper(new URL("http://www.yuvutu.com/modules.php?name=YuGallery&action=view&set_id=420333"));
|
YuvutuRipper ripper = new YuvutuRipper(new URL("http://www.yuvutu.com/modules.php?name=YuGallery&action=view&set_id=420333"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://www.yuvutu.com/modules.php?name=YuGallery&action=view&set_id=420333");
|
||||||
|
YuvutuRipper ripper = new YuvutuRipper(url);
|
||||||
|
assertEquals("420333", ripper.getGID(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,16 @@ public class ZizkiRipperTest extends RippersTest {
|
|||||||
ZizkiRipper ripper = new ZizkiRipper(new URL("http://zizki.com/dee-chorde/we-got-spirit"));
|
ZizkiRipper ripper = new ZizkiRipper(new URL("http://zizki.com/dee-chorde/we-got-spirit"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL url = new URL("http://zizki.com/dee-chorde/we-got-spirit");
|
||||||
|
ZizkiRipper ripper = new ZizkiRipper(url);
|
||||||
|
assertEquals("dee-chorde", ripper.getGID(url));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAlbumTitle() throws IOException {
|
||||||
|
URL url = new URL("http://zizki.com/dee-chorde/we-got-spirit");
|
||||||
|
ZizkiRipper ripper = new ZizkiRipper(url);
|
||||||
|
assertEquals("zizki_Dee Chorde_We Got Spirit", ripper.getAlbumTitle(url));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user