File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33.idea
44local.properties
55out /
6+ * .iml
67
78# Ignore Gradle GUI config
89gradle-app.setting
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Test ;
55import org .schabi .newpipe .Downloader ;
66import org .schabi .newpipe .extractor .ListExtractor ;
1616
1717public class SoundcloudChannelExtractorTest {
1818
19- ChannelExtractor extractor ;
19+ static ChannelExtractor extractor ;
2020
21- @ Before
22- public void setUp () throws Exception {
21+ @ BeforeClass
22+ public static void setUp () throws Exception {
2323 NewPipe .init (Downloader .getInstance ());
2424 extractor = SoundCloud .getService ()
2525 .getChannelExtractor ("https://soundcloud.com/liluzivert" );
Original file line number Diff line number Diff line change 66import static org .junit .Assert .assertTrue ;
77import static org .schabi .newpipe .extractor .ServiceList .SoundCloud ;
88
9- import org .junit .Before ;
9+ import org .junit .BeforeClass ;
1010import org .junit .Ignore ;
1111import org .junit .Test ;
1212import org .schabi .newpipe .Downloader ;
1919 */
2020public class SoundcloudChartsExtractorTest {
2121
22- KioskExtractor extractor ;
22+ static KioskExtractor extractor ;
2323
24- @ Before
25- public void setUp () throws Exception {
24+ @ BeforeClass
25+ public static void setUp () throws Exception {
2626 NewPipe .init (Downloader .getInstance ());
2727 extractor = SoundCloud .getService ()
2828 .getKioskList ()
Original file line number Diff line number Diff line change 44import static org .junit .Assert .assertEquals ;
55import static org .junit .Assert .assertTrue ;
66
7- import org .junit .Before ;
7+ import org .junit .BeforeClass ;
88import org .junit .Test ;
99import org .schabi .newpipe .Downloader ;
1010import org .schabi .newpipe .extractor .NewPipe ;
1313 * Test for {@link SoundcloudChartsUrlIdHandler}
1414 */
1515public class SoundcloudChartsUrlIdHandlerTest {
16- private SoundcloudChartsUrlIdHandler urlIdHandler ;
16+ private static SoundcloudChartsUrlIdHandler urlIdHandler ;
1717
18- @ Before
19- public void setUp () throws Exception {
18+ @ BeforeClass
19+ public static void setUp () throws Exception {
2020 urlIdHandler = new SoundcloudChartsUrlIdHandler ();
2121 NewPipe .init (Downloader .getInstance ());
2222 }
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Test ;
55import org .schabi .newpipe .Downloader ;
66import org .schabi .newpipe .extractor .NewPipe ;
1515 */
1616
1717public class SoundcloudPlaylistExtractorTest {
18- private PlaylistExtractor extractor ;
18+ private static PlaylistExtractor extractor ;
1919
20- @ Before
21- public void setUp () throws Exception {
20+ @ BeforeClass
21+ public static void setUp () throws Exception {
2222 NewPipe .init (Downloader .getInstance ());
2323 extractor = SoundCloud .getService ()
2424 .getPlaylistExtractor ("https://soundcloud.com/liluzivert/sets/the-perfect-luv-tape-r" );
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Ignore ;
55import org .junit .Test ;
66import org .schabi .newpipe .Downloader ;
1717 * Test for {@link SearchEngine}
1818 */
1919public class SoundcloudSearchEngineAllTest {
20- private SearchResult result ;
20+ private static SearchResult result ;
2121
22- @ Before
23- public void setUp () throws Exception {
22+ @ BeforeClass
23+ public static void setUp () throws Exception {
2424 NewPipe .init (Downloader .getInstance ());
2525 SearchEngine engine = SoundCloud .getService ().getSearchEngine ();
2626
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Ignore ;
55import org .junit .Test ;
66import org .schabi .newpipe .Downloader ;
1616 * Test for {@link SearchEngine}
1717 */
1818public class SoundcloudSearchEngineChannelTest {
19- private SearchResult result ;
19+ private static SearchResult result ;
2020
21- @ Before
22- public void setUp () throws Exception {
21+ @ BeforeClass
22+ public static void setUp () throws Exception {
2323 NewPipe .init (Downloader .getInstance ());
2424 SearchEngine engine = SoundCloud .getService ().getSearchEngine ();
2525
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Ignore ;
55import org .junit .Test ;
66import org .schabi .newpipe .Downloader ;
3737 * Test for {@link SearchEngine}
3838 */
3939public class SoundcloudSearchEnginePlaylistTest {
40- private SearchResult result ;
40+ private static SearchResult result ;
4141
42- @ Before
43- public void setUp () throws Exception {
42+ @ BeforeClass
43+ public static void setUp () throws Exception {
4444 NewPipe .init (Downloader .getInstance ());
4545 SearchEngine engine = SoundCloud .getService ().getSearchEngine ();
4646
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
44import org .junit .Ignore ;
55import org .junit .Test ;
66import org .schabi .newpipe .Downloader ;
1616 * Test for {@link SearchEngine}
1717 */
1818public class SoundcloudSearchEngineStreamTest {
19- private SearchResult result ;
19+ private static SearchResult result ;
2020
21- @ Before
22- public void setUp () throws Exception {
21+ @ BeforeClass
22+ public static void setUp () throws Exception {
2323 NewPipe .init (Downloader .getInstance ());
2424 SearchEngine engine = SoundCloud .getService ().getSearchEngine ();
2525
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .soundcloud ;
22
3- import com .grack .nanojson .JsonParserException ;
4- import org .junit .Before ;
3+ import org .junit .BeforeClass ;
54import org .junit .Test ;
65import org .schabi .newpipe .Downloader ;
76import org .schabi .newpipe .extractor .NewPipe ;
8- import org .schabi .newpipe .extractor .Subtitles ;
97import org .schabi .newpipe .extractor .exceptions .ExtractionException ;
108import org .schabi .newpipe .extractor .exceptions .ParsingException ;
119import org .schabi .newpipe .extractor .stream .StreamExtractor ;
1412import org .schabi .newpipe .extractor .stream .SubtitlesFormat ;
1513
1614import java .io .IOException ;
17- import java .util .List ;
1815
1916import static org .junit .Assert .*;
2017import static org .schabi .newpipe .extractor .ServiceList .SoundCloud ;
2320 * Test for {@link StreamExtractor}
2421 */
2522public class SoundcloudStreamExtractorDefaultTest {
26- private SoundcloudStreamExtractor extractor ;
23+ private static SoundcloudStreamExtractor extractor ;
2724
28- @ Before
29- public void setUp () throws Exception {
25+ @ BeforeClass
26+ public static void setUp () throws Exception {
3027 NewPipe .init (Downloader .getInstance ());
3128 extractor = (SoundcloudStreamExtractor ) SoundCloud .getService ().getStreamExtractor ("https://soundcloud.com/liluzivert/do-what-i-want-produced-by-maaly-raw-don-cannon" );
3229 extractor .fetchPage ();
You can’t perform that action at this time.
0 commit comments