VSCO Tests
Added a few tests for VSCORipper
This commit is contained in:
parent
8c82588258
commit
b5ab5b9b99
@ -7,19 +7,38 @@ import java.net.URL;
|
|||||||
public class VscoRipperTest extends RippersTest {
|
public class VscoRipperTest extends RippersTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Testing Rip.
|
* Testing single image.
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void testSingleImageRip() throws IOException{
|
public void testSingleImageRip() throws IOException {
|
||||||
VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/minijello/media/571cd612542220261a123441"));
|
VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/minijello/media/571cd612542220261a123441"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests profile rip.
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
public void testProfileRip() throws IOException {
|
||||||
|
VscoRipper ripper = new VscoRipper(new URL("https://vsco.co/jonathangodoy/images/1"));
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevents Bug #679 from happening again.
|
||||||
|
* https://github.com/RipMeApp/ripme/issues/679
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
public void testHyphenatedRip() throws IOException {
|
||||||
|
VscoRipper ripper = new VscoRipper(new URL(""));
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make sure it names the folder something sensible.
|
* Make sure it names the folder something sensible.
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void testGetGID() throws IOException{
|
public void testGetGID() throws IOException {
|
||||||
URL url = new URL("https://vsco.co/minijello/media/571cd612542220261a123441");
|
URL url = new URL("https://vsco.co/minijello/media/571cd612542220261a123441");
|
||||||
|
|
||||||
VscoRipper ripper = new VscoRipper(url);
|
VscoRipper ripper = new VscoRipper(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user