Update mock resources for YT Mix playlist
This commit is contained in:
parent
066afd8629
commit
a8ebd2cead
10 changed files with 376 additions and 95 deletions
|
@ -28,14 +28,14 @@ import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
|
||||||
|
|
||||||
public class YoutubeMixPlaylistExtractorTest {
|
public class YoutubeMixPlaylistExtractorTest {
|
||||||
|
|
||||||
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
|
|
||||||
private static final String VIDEO_TITLE = "Mix – ";
|
|
||||||
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/mix/";
|
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/mix/";
|
||||||
private static final Map<String, String> dummyCookie = new HashMap<>();
|
private static final Map<String, String> dummyCookie = new HashMap<>();
|
||||||
|
|
||||||
private static YoutubeMixPlaylistExtractor extractor;
|
private static YoutubeMixPlaylistExtractor extractor;
|
||||||
|
|
||||||
public static class Mix {
|
public static class Mix {
|
||||||
|
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
|
||||||
|
private static final String VIDEO_TITLE = "Mix – ";
|
||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
public static void setUp() throws Exception {
|
public static void setUp() throws Exception {
|
||||||
|
@ -122,6 +122,8 @@ public class YoutubeMixPlaylistExtractorTest {
|
||||||
|
|
||||||
public static class MixWithIndex {
|
public static class MixWithIndex {
|
||||||
|
|
||||||
|
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
|
||||||
|
private static final String VIDEO_TITLE = "Mix – ";
|
||||||
private static final int INDEX = 4;
|
private static final int INDEX = 4;
|
||||||
private static final String VIDEO_ID_NUMBER_4 = "lWA2pjMjpBs";
|
private static final String VIDEO_ID_NUMBER_4 = "lWA2pjMjpBs";
|
||||||
|
|
||||||
|
@ -204,6 +206,7 @@ public class YoutubeMixPlaylistExtractorTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class MyMix {
|
public static class MyMix {
|
||||||
|
private static final String VIDEO_ID = "_AzeUSL9lZc";
|
||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
public static void setUp() throws Exception {
|
public static void setUp() throws Exception {
|
||||||
|
@ -288,6 +291,8 @@ public class YoutubeMixPlaylistExtractorTest {
|
||||||
|
|
||||||
public static class Invalid {
|
public static class Invalid {
|
||||||
|
|
||||||
|
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
|
||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
public static void setUp() throws IOException {
|
public static void setUp() throws IOException {
|
||||||
YoutubeParsingHelper.resetClientVersionAndKey();
|
YoutubeParsingHelper.resetClientVersionAndKey();
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue