Skip to content

Commit

Permalink
Adding unit tests for Mastodon rippers
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1f595 committed Oct 9, 2019
1 parent 19ec16b commit c9759f2
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit c9759f2

Please sign in to comment.