1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-01-18 05:08:15 +01:00

Adding unit tests for Mastodon rippers

This commit is contained in:
0x1f595 2019-10-08 21:55:08 -06:00
parent 19ec16bf7f
commit c9759f23d2
5 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.ArtAlleyRipper;
import org.junit.jupiter.api.Test;
public class ArtAlleyRipperTest extends RippersTest {
@Test
public void testRip() throws IOException {
ArtAlleyRipper ripper = new ArtAlleyRipper(new URL("https://artalley.social/@curator/media"));
testRipper(ripper);
}
}

View File

@ -0,0 +1,15 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.BaraagRipper;
import org.junit.jupiter.api.Test;
public class BaraagRipperTest extends RippersTest {
@Test
public void testRip() throws IOException {
BaraagRipper ripper = new BaraagRipper(new URL("https://baraag.net/@darkshadow777/media"));
testRipper(ripper);
}
}

View File

@ -0,0 +1,15 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.MastodonRipper;
import org.junit.jupiter.api.Test;
public class MastodonRipperTest extends RippersTest {
@Test
public void testRip() throws IOException {
MastodonRipper ripper = new MastodonRipper(new URL("https://mastodon.social/@pythonhub/media"));
testRipper(ripper);
}
}

View File

@ -0,0 +1,15 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.MastodonXyzRipper;
import org.junit.jupiter.api.Test;
public class MastodonXyzRipperTest extends RippersTest {
@Test
public void testRip() throws IOException {
MastodonXyzRipper ripper = new MastodonXyzRipper(new URL("https://mastodon.xyz/@artwo/media"));
testRipper(ripper);
}
}

View File

@ -0,0 +1,15 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.PawooRipper;
import org.junit.jupiter.api.Test;
public class PawooRipperTest extends RippersTest {
@Test
public void testRip() throws IOException {
PawooRipper ripper = new PawooRipper(new URL("https://pawoo.net/@halki/media"));
testRipper(ripper);
}
}