Skip to content

Commit 066afd8

Browse files
committed
Restored test
1 parent 3712a66 commit 066afd8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeMixPlaylistExtractorTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,16 @@ public static void setUp() throws IOException {
296296
dummyCookie.put(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever");
297297
}
298298

299+
@Test
300+
void getPageEmptyUrl() throws Exception {
301+
extractor = (YoutubeMixPlaylistExtractor) YouTube
302+
.getPlaylistExtractor("https://www.youtube.com/watch?v=" + VIDEO_ID
303+
+ "&list=RD" + VIDEO_ID);
304+
305+
extractor.fetchPage();
306+
assertThrows(IllegalArgumentException.class, () -> extractor.getPage(new Page("")));
307+
}
308+
299309
@Test
300310
void invalidVideoId() throws Exception {
301311
extractor = (YoutubeMixPlaylistExtractor) YouTube

0 commit comments

Comments
 (0)