|
5 | 5 | import java.net.URISyntaxException; |
6 | 6 | import java.net.URL; |
7 | 7 |
|
8 | | -import com.rarchives.ripme.ripper.rippers.HypnohubRipper; |
9 | 8 | import org.junit.jupiter.api.Assertions; |
10 | 9 | import org.junit.jupiter.api.Disabled; |
11 | 10 | import org.junit.jupiter.api.Test; |
12 | 11 |
|
| 12 | +import com.rarchives.ripme.ripper.rippers.HypnohubRipper; |
| 13 | + |
13 | 14 | public class HypnohubRipperTest extends RippersTest { |
14 | 15 | @Test |
15 | | - @Disabled("wants a hunman") |
| 16 | + @Disabled("wants a human") |
16 | 17 | public void testRip() throws IOException, URISyntaxException { |
17 | 18 | URL poolURL = new URI("http://hypnohub.net/pool/show/2303").toURL(); |
18 | | - URL postURL = new URI("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-").toURL(); |
| 19 | + URL postURL = new URI("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-") |
| 20 | + .toURL(); |
19 | 21 | HypnohubRipper ripper = new HypnohubRipper(poolURL); |
20 | 22 | testRipper(ripper); |
21 | 23 | ripper = new HypnohubRipper(postURL); |
22 | 24 | testRipper(ripper); |
23 | 25 | } |
| 26 | + |
24 | 27 | @Test |
25 | 28 | public void testGetGID() throws IOException, URISyntaxException { |
26 | 29 | URL poolURL = new URI("http://hypnohub.net/pool/show/2303").toURL(); |
27 | 30 | HypnohubRipper ripper = new HypnohubRipper(poolURL); |
28 | 31 | Assertions.assertEquals("2303", ripper.getGID(poolURL)); |
29 | 32 |
|
30 | | - URL postURL = new URI("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-").toURL(); |
| 33 | + URL postURL = new URI("http://hypnohub.net/post/show/63464/black_hair-bracelet-collar-corruption-female_only-") |
| 34 | + .toURL(); |
31 | 35 | Assertions.assertEquals("63464_black_hair-bracelet-collar-corruption-female_only-", ripper.getGID(postURL)); |
32 | 36 | } |
33 | 37 | } |
0 commit comments