mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-05 21:37:33 +02:00
Adding unit tests for Mastodon rippers
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user