Added unit test for HypnohubRipper
This commit is contained in:
parent
7b1fbd3290
commit
60d5f95f93
@ -0,0 +1,25 @@
|
|||||||
|
package com.rarchives.ripme.tst.ripper.rippers;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URL;
|
||||||
|
|
||||||
|
import com.rarchives.ripme.ripper.rippers.HypnohubRipper;
|
||||||
|
|
||||||
|
public class HypnohubRipperTest extends RippersTest {
|
||||||
|
public void testRip() throws IOException {
|
||||||
|
URL poolURL = new URL("http://hypnohub.net/pool/show/2303");
|
||||||
|
URL postURL = new URL("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-");
|
||||||
|
HypnohubRipper ripper = new HypnohubRipper(poolURL);
|
||||||
|
testRipper(ripper);
|
||||||
|
ripper = new HypnohubRipper(postURL);
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
|
public void testGetGID() throws IOException {
|
||||||
|
URL poolURL = new URL("http://hypnohub.net/pool/show/2303");
|
||||||
|
HypnohubRipper ripper = new HypnohubRipper(poolURL);
|
||||||
|
assertEquals("hypnohub_2303", ripper.getGID(poolURL));
|
||||||
|
|
||||||
|
URL postURL = new URL("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-");
|
||||||
|
assertEquals("hypnohub_63464_black_hair-bracelet-collar-corruption-female_only-", ripper.getGID(postURL));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user