|
6 | 6 | import static org.schabi.newpipe.extractor.ServiceList.SoundCloud; |
7 | 7 |
|
8 | 8 | import org.junit.jupiter.api.Disabled; |
| 9 | +import org.junit.jupiter.api.Nested; |
9 | 10 | import org.junit.jupiter.api.Test; |
10 | 11 | import org.schabi.newpipe.extractor.ExtractorAsserts; |
11 | 12 | import org.schabi.newpipe.extractor.MediaFormat; |
|
27 | 28 | public class SoundcloudStreamExtractorTest { |
28 | 29 | private static final String SOUNDCLOUD = "https://soundcloud.com/"; |
29 | 30 |
|
30 | | - public static class SoundcloudGeoRestrictedTrack extends DefaultStreamExtractorTest { |
| 31 | + @Nested |
| 32 | + class SoundcloudGeoRestrictedTrack extends DefaultStreamExtractorTest { |
31 | 33 | private static final String ID = "one-touch"; |
32 | 34 | private static final String UPLOADER = SOUNDCLOUD + "jessglynne"; |
33 | 35 | private static final int TIMESTAMP = 0; |
@@ -82,7 +84,8 @@ public void testRelatedItems() throws Exception { |
82 | 84 | } |
83 | 85 | } |
84 | 86 |
|
85 | | - public static class SoundcloudGoPlusTrack extends DefaultStreamExtractorTest { |
| 87 | + @Nested |
| 88 | + class SoundcloudGoPlusTrack extends DefaultStreamExtractorTest { |
86 | 89 | private static final String ID = "places"; |
87 | 90 | private static final String UPLOADER = SOUNDCLOUD + "martinsolveig"; |
88 | 91 | private static final int TIMESTAMP = 0; |
@@ -140,7 +143,8 @@ public void testRelatedItems() throws Exception { |
140 | 143 | @Override public String expectedCategory() { return "Dance"; } |
141 | 144 | } |
142 | 145 |
|
143 | | - static class CreativeCommonsOpenMindsEp21 extends DefaultStreamExtractorTest { |
| 146 | + @Nested |
| 147 | + class CreativeCommonsOpenMindsEp21 extends DefaultStreamExtractorTest { |
144 | 148 | private static final String ID = "open-minds-ep-21-dr-beth-harris-and-dr-steven-zucker-of-smarthistory"; |
145 | 149 | private static final String UPLOADER = SOUNDCLOUD + "wearecc"; |
146 | 150 | private static final int TIMESTAMP = 69; |
|
0 commit comments