Restored test

This commit is contained in:
litetex 2022-01-04 17:33:08 +01:00
parent 3712a669b1
commit 066afd8629

View file

@ -296,6 +296,16 @@ public class YoutubeMixPlaylistExtractorTest {
dummyCookie.put(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever"); 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 @Test
void invalidVideoId() throws Exception { void invalidVideoId() throws Exception {
extractor = (YoutubeMixPlaylistExtractor) YouTube extractor = (YoutubeMixPlaylistExtractor) YouTube