Restored test

This commit is contained in:
litetex 2022-01-04 17:33:08 +01:00
parent 3712a669b1
commit 066afd8629
1 changed files with 10 additions and 0 deletions

View File

@ -296,6 +296,16 @@ public class YoutubeMixPlaylistExtractorTest {
dummyCookie.put(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever");
}
@Test
void getPageEmptyUrl() throws Exception {
extractor = (YoutubeMixPlaylistExtractor) YouTube
.getPlaylistExtractor("https://www.youtube.com/watch?v=" + VIDEO_ID
+ "&list=RD" + VIDEO_ID);
extractor.fetchPage();
assertThrows(IllegalArgumentException.class, () -> extractor.getPage(new Page("")));
}
@Test
void invalidVideoId() throws Exception {
extractor = (YoutubeMixPlaylistExtractor) YouTube