mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-25 14:51:11 +02:00
Fix indentation, remove unused import, avoid deprecated method
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.rarchives.ripme.tst.ripper.rippers;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
||||
import com.rarchives.ripme.ripper.rippers.ErotivRipper;
|
||||
@@ -12,7 +11,7 @@ public class ErotivRipperTest extends RippersTest {
|
||||
public void testGetGID() throws IOException {
|
||||
URL url = new URL("https://erotiv.io/e/1568314255");
|
||||
ErotivRipper ripper = new ErotivRipper(url);
|
||||
assertEquals("1568314255", ripper.getGID(url));
|
||||
assert("1568314255".equals(ripper.getGID(url)));
|
||||
}
|
||||
|
||||
public void testRip() throws IOException {
|
||||
@@ -20,10 +19,11 @@ public class ErotivRipperTest extends RippersTest {
|
||||
ErotivRipper ripper = new ErotivRipper(url);
|
||||
testRipper(ripper);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetURLsFromPage() throws IOException {
|
||||
URL url = new URL("https://erotiv.io/e/1568314255");
|
||||
ErotivRipper ripper = new ErotivRipper(url);
|
||||
assert (1 == ripper.getURLsFromPage(ripper.getFirstPage()).size());
|
||||
assert(1 == ripper.getURLsFromPage(ripper.getFirstPage()).size());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user