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

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

import com.rarchives.ripme.ripper.rippers.WordpressComicRipper;

public class WordpressComicRipperTest extends RippersTest {
    // Test links (see also WordpressComicRipper.java)
    // http://www.totempole666.com/comic/first-time-for-everything-00-cover/
    // http://buttsmithy.com/archives/comic/p1
    // http://themonsterunderthebed.net/?comic=test-post
    // http://prismblush.com/comic/hella-trap-pg-01/
    // http://www.konradokonski.com/sawdust/
    // http://www.konradokonski.com/wiory/
    // http://freeadultcomix.com/finders-feepaid-in-full-sparrow/
    // http://thisis.delvecomic.com/NewWP/comic/in-too-deep/
    // http://tnbtu.com/comic/01-00/
    // http://shipinbottle.pepsaga.com/?p=281

    /*
    // https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
    public void test_totempole666() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://www.totempole666.com/comic/first-time-for-everything-00-cover/"));
        testRipper(ripper);
    }
    */

    /*
    // https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
    public void test_buttsmithy() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://buttsmithy.com/archives/comic/p1"));
        testRipper(ripper);
    }
    */

    /*
    // https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
    public void test_themonsterunderthebed() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://themonsterunderthebed.net/?comic=test-post"));
        testRipper(ripper);
    }
    */

    public void test_prismblush() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://prismblush.com/comic/hella-trap-pg-01/"));
        testRipper(ripper);
    }

    /*
    // https://github.com/RipMeApp/ripme/issues/266 - WordpressRipper: konradokonski.com previously supported but now cannot rip

    public void test_konradokonski_1() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://www.konradokonski.com/sawdust/"));
        testRipper(ripper);
    }

    public void test_konradokonski_2() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://www.konradokonski.com/wiory/"));
        testRipper(ripper);
    }
    */

    /*
    // https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
    public void test_freeadultcomix() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://freeadultcomix.com/finders-feepaid-in-full-sparrow/"));
        testRipper(ripper);
    }
    */

    public void test_delvecomic() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://thisis.delvecomic.com/NewWP/comic/in-too-deep/"));
        testRipper(ripper);
    }

    public void test_tnbtu() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://tnbtu.com/comic/01-00/"));
        testRipper(ripper);
    }

    public void test_pepsaga() throws IOException {
        WordpressComicRipper ripper = new WordpressComicRipper(
                new URL("http://shipinbottle.pepsaga.com/?p=281"));
        testRipper(ripper);
    }
}

@@ -550,16 +550,29 @@
 sawdust/
+comic/get-up/
 %0A    // 
@@ -606,16 +606,31 @@
 m/wiory/
+comic/08182008/
 %0A    // 
@@ -2187,145 +2187,8 @@
  %7D%0A%0A
-    /*%0A    // https://github.com/RipMeApp/ripme/issues/266 - WordpressRipper: konradokonski.com previously supported but now cannot rip%0A%0A
     
@@ -2369,16 +2369,29 @@
 sawdust/
+comic/get-up/
 %22));%0A   
@@ -2606,16 +2606,31 @@
 m/wiory/
+comic/08182008/
 %22));%0A   
@@ -2651,39 +2651,32 @@
 r(ripper);%0A    %7D
-%0A    */
 %0A%0A    /*%0A    // 

Fix #266: Enable WordpressComicRipper konradokonski.com tests with updated URLs.