1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-24 14:33:17 +02:00

Fix indentation, remove unused import, avoid deprecated method

This commit is contained in:
randomcommitter
2019-09-15 23:11:45 +01:00
parent d64162c636
commit 15a57a6e9b

View File

@@ -1,29 +1,29 @@
package com.rarchives.ripme.tst.ripper.rippers; package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import com.rarchives.ripme.ripper.rippers.ErotivRipper; import com.rarchives.ripme.ripper.rippers.ErotivRipper;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
public class ErotivRipperTest extends RippersTest { public class ErotivRipperTest extends RippersTest {
@Test @Test
public void testGetGID() throws IOException { public void testGetGID() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255"); URL url = new URL("https://erotiv.io/e/1568314255");
ErotivRipper ripper = new ErotivRipper(url); ErotivRipper ripper = new ErotivRipper(url);
assertEquals("1568314255", ripper.getGID(url)); assert("1568314255".equals(ripper.getGID(url)));
} }
public void testRip() throws IOException { public void testRip() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255"); URL url = new URL("https://erotiv.io/e/1568314255");
ErotivRipper ripper = new ErotivRipper(url); ErotivRipper ripper = new ErotivRipper(url);
testRipper(ripper); testRipper(ripper);
} }
@Test
public void testGetURLsFromPage() throws IOException { @Test
URL url = new URL("https://erotiv.io/e/1568314255"); public void testGetURLsFromPage() throws IOException {
ErotivRipper ripper = new ErotivRipper(url); URL url = new URL("https://erotiv.io/e/1568314255");
assert (1 == ripper.getURLsFromPage(ripper.getFirstPage()).size()); ErotivRipper ripper = new ErotivRipper(url);
} assert(1 == ripper.getURLsFromPage(ripper.getFirstPage()).size());
}
} }