package com.rarchives.ripme.tst.ripper.rippers;

import java.io.IOException;
import java.net.URL;

import com.rarchives.ripme.ripper.rippers.E621Ripper;
import org.junit.jupiter.api.Test;

public class E621RipperTest extends RippersTest {
    public void testRip() throws IOException {
        E621Ripper ripper = new E621Ripper(new URL("https://e621.net/post/index/1/beach"));
        testRipper(ripper);
    }
    @Test
    public void testFlashOrWebm() throws IOException {
        E621Ripper ripper = new E621Ripper(new URL("https://e621.net/post/index/1/gif"));
        testRipper(ripper);
    }
    @Test
    public void testGetNextPage() throws IOException {
        E621Ripper nextPageRipper = new E621Ripper(new URL("https://e621.net/post/index/1/cosmicminerals"));
        try {
            nextPageRipper.getNextPage(nextPageRipper.getFirstPage());
            assert (true);
        } catch (IOException e) {
            throw e;
        }

        E621Ripper noNextPageRipper = new E621Ripper(new URL("https://e621.net/post/index/1/cosmicminerals"));
        try {
            noNextPageRipper.getNextPage(noNextPageRipper.getFirstPage());
        } catch (IOException e) {
            assertEquals(e.getMessage(), "No more pages.");
        }
    }
}

@@ -352,25 +352,23 @@
 net/post
-/index/1/
+s?tags=
 beach%22))
@@ -460,32 +460,1089 @@
 s IOException %7B%0A
+        E621Ripper ripper = new E621Ripper(new URL(%22https://e621.net/posts?page=4&tags=gif+rating%253As+3d%22));%0A        testRipper(ripper);%0A    %7D%0A    @Test%0A    public void testGetNextPage() throws IOException %7B%0A        E621Ripper nextPageRipper = new E621Ripper(new URL(%22https://e621.net/posts?tags=cosmicminerals%22));%0A        try %7B%0A            nextPageRipper.getNextPage(nextPageRipper.getFirstPage());%0A            assert (true);%0A        %7D catch (IOException e) %7B%0A            throw e;%0A        %7D%0A%0A        E621Ripper noNextPageRipper = new E621Ripper(new URL(%22https://e621.net/post/index/1/cosmicminerals%22));%0A        try %7B%0A            noNextPageRipper.getNextPage(noNextPageRipper.getFirstPage());%0A        %7D catch (IOException e) %7B%0A            assertEquals(e.getMessage(), %22No more pages.%22);%0A        %7D%0A    %7D%0A    @Test%0A    public void testOldRip() throws IOException %7B%0A        E621Ripper ripper = new E621Ripper(new URL(%22https://e621.net/post/index/1/beach%22));%0A        testRipper(ripper);%0A    %7D%0A    @Test%0A    public void testOldFlashOrWebm() throws IOException %7B%0A
         E621Ripp
@@ -1651,32 +1651,32 @@
     %7D%0A    @Test%0A
-
     public void 
@@ -1671,32 +1671,35 @@
 public void test
+Old
 GetNextPage() th

add e621 test