Added getNextPage unit test for xhamster ripper
This commit is contained in:
parent
e24d8f6853
commit
464522693e
@ -4,6 +4,7 @@ import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import com.rarchives.ripme.ripper.rippers.XhamsterRipper;
|
||||
import org.jsoup.nodes.Document;
|
||||
|
||||
public class XhamsterRipperTest extends RippersTest {
|
||||
|
||||
@ -27,4 +28,14 @@ public class XhamsterRipperTest extends RippersTest {
|
||||
XhamsterRipper ripper = new XhamsterRipper(url);
|
||||
assertEquals("7254664", ripper.getGID(url));
|
||||
}
|
||||
|
||||
public void testGetNextPage() throws IOException {
|
||||
XhamsterRipper ripper = new XhamsterRipper(new URL("https://pt.xhamster.com/photos/gallery/silvana-7105696"));
|
||||
Document doc = ripper.getFirstPage();
|
||||
try {
|
||||
ripper.getNextPage(doc);
|
||||
} catch (IOException e) {
|
||||
throw new Error("Was unable to get next page of album");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user