mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 15:30:34 +05:30
Use camelCase
This commit is contained in:
parent
69d5bf2a89
commit
daac243fc4
@ -82,7 +82,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
||||
*/
|
||||
class YoutubeDashManifestCreatorsTest {
|
||||
private static final String RESOURCE_PATH =
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/dash_manifest";
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/dashManifest";
|
||||
|
||||
// Setting a higher number may let Google video servers return 403s
|
||||
private static final int MAX_STREAMS_TO_TEST_PER_METHOD = 3;
|
||||
|
@ -9,11 +9,9 @@ import org.schabi.newpipe.extractor.ExtractorAsserts;
|
||||
import org.schabi.newpipe.extractor.NewPipe;
|
||||
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
class YoutubeJavaScriptExtractorTest {
|
||||
private static final String RESOURCE_PATH =
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/js_extractor/";
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/jsExtractor/";
|
||||
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
|
@ -14,7 +14,7 @@ import java.io.IOException;
|
||||
|
||||
class YoutubeThrottlingParameterDeobfuscationTest {
|
||||
private static final String RESOURCE_PATH =
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/parameter_deobf";
|
||||
DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/parameterDeobf";
|
||||
|
||||
@BeforeEach
|
||||
void setup() throws IOException {
|
||||
|
@ -20,7 +20,7 @@ import javax.annotation.Nullable;
|
||||
|
||||
// Doesn't work with mocks. Makes request with different `dataToSend` I think
|
||||
public class YoutubeMusicSearchExtractorTest {
|
||||
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/music_search/";
|
||||
private static final String RESOURCE_PATH = DownloaderFactory.RESOURCE_PATH + "services/youtube/extractor/musicSearch/";
|
||||
private static final String BASE_SEARCH_URL = "music.youtube.com/search?q=";
|
||||
|
||||
public static class MusicSongs extends DefaultSearchExtractorTest {
|
||||
@ -30,7 +30,7 @@ public class YoutubeMusicSearchExtractorTest {
|
||||
@BeforeAll
|
||||
public static void setUp() throws Exception {
|
||||
YoutubeTestsUtils.ensureStateless();
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "music_songs"));
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "musicSongs"));
|
||||
|
||||
extractor = YouTube.getSearchExtractor(QUERY, singletonList(YoutubeSearchQueryHandlerFactory.MUSIC_SONGS), "");
|
||||
extractor.fetchPage();
|
||||
@ -54,7 +54,7 @@ public class YoutubeMusicSearchExtractorTest {
|
||||
@BeforeAll
|
||||
public static void setUp() throws Exception {
|
||||
YoutubeTestsUtils.ensureStateless();
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "music_videos"));
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "musicVideos"));
|
||||
|
||||
extractor = YouTube.getSearchExtractor(QUERY, singletonList(YoutubeSearchQueryHandlerFactory.MUSIC_VIDEOS), "");
|
||||
extractor.fetchPage();
|
||||
@ -78,7 +78,7 @@ public class YoutubeMusicSearchExtractorTest {
|
||||
@BeforeAll
|
||||
public static void setUp() throws Exception {
|
||||
YoutubeTestsUtils.ensureStateless();
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "music_albums"));
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "musicAlbums"));
|
||||
|
||||
extractor = YouTube.getSearchExtractor(QUERY, singletonList(YoutubeSearchQueryHandlerFactory.MUSIC_ALBUMS), "");
|
||||
extractor.fetchPage();
|
||||
@ -102,7 +102,7 @@ public class YoutubeMusicSearchExtractorTest {
|
||||
@BeforeAll
|
||||
public static void setUp() throws Exception {
|
||||
YoutubeTestsUtils.ensureStateless();
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "music_playlists"));
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "musicPlaylists"));
|
||||
|
||||
extractor = YouTube.getSearchExtractor(QUERY, singletonList(YoutubeSearchQueryHandlerFactory.MUSIC_PLAYLISTS), "");
|
||||
extractor.fetchPage();
|
||||
@ -126,7 +126,7 @@ public class YoutubeMusicSearchExtractorTest {
|
||||
@BeforeAll
|
||||
public static void setUp() throws Exception {
|
||||
YoutubeTestsUtils.ensureStateless();
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "music_artists"));
|
||||
NewPipe.init(DownloaderFactory.getDownloader(RESOURCE_PATH + "musicArtists"));
|
||||
|
||||
extractor = YouTube.getSearchExtractor(QUERY, singletonList(YoutubeSearchQueryHandlerFactory.MUSIC_ARTISTS), "");
|
||||
extractor.fetchPage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user