Fixed unit test. Closes digitalnoise/ripme#2

This commit is contained in:
digitalnoise 2018-09-16 14:03:20 -05:00
parent db154c48b1
commit 278560e03e

View File

@ -3,17 +3,17 @@ package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import com.rarchives.ripme.ripper.rippers.Tubex6Ripper; import com.rarchives.ripme.ripper.rippers.RulePornRipper;
public class RulePornRipperTest extends RippersTest { public class RulePornRipperTest extends RippersTest {
public void testRip() throws IOException { public void testRip() throws IOException {
Tubex6Ripper ripper = new Tubex6Ripper(new URL("https://ruleporn.com/are-you-going-to-fill-my-lil-pussy-up/")); RulePornRipper ripper = new RulePornRipper(new URL("https://ruleporn.com/are-you-going-to-fill-my-lil-pussy-up/"));
testRipper(ripper); testRipper(ripper);
} }
public void testGetGID() throws IOException { public void testGetGID() throws IOException {
URL url = new URL("https://ruleporn.com/are-you-going-to-fill-my-lil-pussy-up/"); URL url = new URL("https://ruleporn.com/are-you-going-to-fill-my-lil-pussy-up/");
Tubex6Ripper ripper = new Tubex6Ripper(url); RulePornRipper ripper = new RulePornRipper(url);
assertEquals("are-you-going-to-fill-my-lil-pussy-up", ripper.getGID(url)); assertEquals("are-you-going-to-fill-my-lil-pussy-up", ripper.getGID(url));
} }
} }