forked from RipMeApp/ripme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding unit tests for Mastodon rippers
- Loading branch information
Showing
5 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/test/java/com/rarchives/ripme/tst/ripper/rippers/ArtAlleyRipperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/com/rarchives/ripme/tst/ripper/rippers/BaraagRipperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/com/rarchives/ripme/tst/ripper/rippers/MastodonRipperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/com/rarchives/ripme/tst/ripper/rippers/MastodonXyzRipperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/com/rarchives/ripme/tst/ripper/rippers/PawooRipperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |