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));
	}

	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());
	}
}

@@ -74,47 +74,8 @@
 on;%0A
-import java.net.MalformedURLException;%0A
 impo
@@ -236,24 +236,30 @@
 sTest %7B%0A
-%09
+    
 @Test%0A
-%09
+    
 public v
@@ -288,34 +288,40 @@
 s IOException %7B%0A
-%09%09
+        
 URL url = new UR
@@ -349,34 +349,40 @@
 e/1568314255%22);%0A
-%09%09
+        
 ErotivRipper rip
@@ -414,22 +414,22 @@
 l);%0A
-%09%09assertEquals
+        assert
 (%2215
@@ -441,10 +441,16 @@
 255%22
-, 
+.equals(
 ripp
@@ -468,15 +468,22 @@
 rl))
+)
 ;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -513,34 +513,40 @@
 s IOException %7B%0A
-%09%09
+        
 URL url = new UR
@@ -574,34 +574,40 @@
 e/1568314255%22);%0A
-%09%09
+        
 ErotivRipper rip
@@ -635,18 +635,24 @@
 r(url);%0A
-%09%09
+        
 testRipp
@@ -667,19 +667,29 @@
 r);%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 @Test%0A
-%09
+    
 publ
@@ -739,18 +739,24 @@
 ption %7B%0A
-%09%09
+        
 URL url 
@@ -800,18 +800,24 @@
 4255%22);%0A
-%09%09
+        
 ErotivRi
@@ -857,17 +857,22 @@
 l);%0A
-%09%09
+        
 assert
- 
 (1 =
@@ -932,9 +932,12 @@
 ));%0A
-%09
+    
 %7D%0A%7D%0A

Fix indentation, remove unused import, avoid deprecated method