Add test values for failing tests.
This commit is contained in:
parent
5b0ec694a6
commit
6950b362f2
4 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,7 @@ public class YoutubeStreamExtractorAgeRestrictedTest extends DefaultStreamExtrac
|
||||||
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
||||||
@Override public String expectedUploaderName() { return "DAN TV"; }
|
@Override public String expectedUploaderName() { return "DAN TV"; }
|
||||||
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCcQHIVL83g5BEQe2IJFb-6w"; }
|
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCcQHIVL83g5BEQe2IJFb-6w"; }
|
||||||
|
@Override public long expectedUploaderSubscriberCountAtLeast() { return 50; }
|
||||||
@Override public boolean expectedUploaderVerified() { return false; }
|
@Override public boolean expectedUploaderVerified() { return false; }
|
||||||
@Override public boolean expectedDescriptionIsEmpty() { return true; }
|
@Override public boolean expectedDescriptionIsEmpty() { return true; }
|
||||||
@Override public List<String> expectedDescriptionContains() { return Collections.emptyList(); }
|
@Override public List<String> expectedDescriptionContains() { return Collections.emptyList(); }
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class YoutubeStreamExtractorControversialTest extends DefaultStreamExtrac
|
||||||
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
||||||
@Override public String expectedUploaderName() { return "Amazing Atheist"; }
|
@Override public String expectedUploaderName() { return "Amazing Atheist"; }
|
||||||
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCjNxszyFPasDdRoD9J6X-sw"; }
|
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCjNxszyFPasDdRoD9J6X-sw"; }
|
||||||
|
@Override public long expectedUploaderSubscriberCountAtLeast() { return 977_000; }
|
||||||
@Override public List<String> expectedDescriptionContains() {
|
@Override public List<String> expectedDescriptionContains() {
|
||||||
return Arrays.asList("http://www.huffingtonpost.com/2010/09/09/obama-gma-interview-quran_n_710282.html",
|
return Arrays.asList("http://www.huffingtonpost.com/2010/09/09/obama-gma-interview-quran_n_710282.html",
|
||||||
"freedom");
|
"freedom");
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractor
|
||||||
@Override public StreamType expectedStreamType() { return StreamType.LIVE_STREAM; }
|
@Override public StreamType expectedStreamType() { return StreamType.LIVE_STREAM; }
|
||||||
@Override public String expectedUploaderName() { return "Lofi Girl"; }
|
@Override public String expectedUploaderName() { return "Lofi Girl"; }
|
||||||
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow"; }
|
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow"; }
|
||||||
|
@Override public long expectedUploaderSubscriberCountAtLeast() { return 9_800_000; }
|
||||||
@Override public List<String> expectedDescriptionContains() {
|
@Override public List<String> expectedDescriptionContains() {
|
||||||
return Arrays.asList("Lofi Girl merch",
|
return Arrays.asList("Lofi Girl merch",
|
||||||
"Thank you for listening, I hope you will have a good time here");
|
"Thank you for listening, I hope you will have a good time here");
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class YoutubeStreamExtractorUnlistedTest extends DefaultStreamExtractorTe
|
||||||
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
|
||||||
@Override public String expectedUploaderName() { return "Hooked"; }
|
@Override public String expectedUploaderName() { return "Hooked"; }
|
||||||
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCPysfiuOv4VKBeXFFPhKXyw"; }
|
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCPysfiuOv4VKBeXFFPhKXyw"; }
|
||||||
|
@Override public long expectedUploaderSubscriberCountAtLeast() { return 24_300; }
|
||||||
@Override public List<String> expectedDescriptionContains() {
|
@Override public List<String> expectedDescriptionContains() {
|
||||||
return Arrays.asList("https://www.youtube.com/user/Roccowschiptune",
|
return Arrays.asList("https://www.youtube.com/user/Roccowschiptune",
|
||||||
"https://www.facebook.com/HookedMagazinDE");
|
"https://www.facebook.com/HookedMagazinDE");
|
||||||
|
|
Loading…
Reference in a new issue