1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-24 06:23:52 +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;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.ErotivRipper;
import org.junit.jupiter.api.Test;
public class ErotivRipperTest extends RippersTest {
@Test
public void testGetGID() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255");
ErotivRipper ripper = new ErotivRipper(url);
assertEquals("1568314255", ripper.getGID(url));
}
@Test
public void testGetGID() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255");
ErotivRipper ripper = new ErotivRipper(url);
assert("1568314255".equals(ripper.getGID(url)));
}
public void testRip() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255");
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());
}
public void testRip() throws IOException {
URL url = new URL("https://erotiv.io/e/1568314255");
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());
}
}