Skip to content

Commit 1a5ac2f

Browse files
Fix nested tests
1 parent f38b72c commit 1a5ac2f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudStreamExtractorTest.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static org.schabi.newpipe.extractor.ServiceList.SoundCloud;
77

88
import org.junit.jupiter.api.Disabled;
9+
import org.junit.jupiter.api.Nested;
910
import org.junit.jupiter.api.Test;
1011
import org.schabi.newpipe.extractor.ExtractorAsserts;
1112
import org.schabi.newpipe.extractor.MediaFormat;
@@ -27,7 +28,8 @@
2728
public class SoundcloudStreamExtractorTest {
2829
private static final String SOUNDCLOUD = "https://soundcloud.com/";
2930

30-
public static class SoundcloudGeoRestrictedTrack extends DefaultStreamExtractorTest {
31+
@Nested
32+
class SoundcloudGeoRestrictedTrack extends DefaultStreamExtractorTest {
3133
private static final String ID = "one-touch";
3234
private static final String UPLOADER = SOUNDCLOUD + "jessglynne";
3335
private static final int TIMESTAMP = 0;
@@ -82,7 +84,8 @@ public void testRelatedItems() throws Exception {
8284
}
8385
}
8486

85-
public static class SoundcloudGoPlusTrack extends DefaultStreamExtractorTest {
87+
@Nested
88+
class SoundcloudGoPlusTrack extends DefaultStreamExtractorTest {
8689
private static final String ID = "places";
8790
private static final String UPLOADER = SOUNDCLOUD + "martinsolveig";
8891
private static final int TIMESTAMP = 0;
@@ -140,7 +143,8 @@ public void testRelatedItems() throws Exception {
140143
@Override public String expectedCategory() { return "Dance"; }
141144
}
142145

143-
static class CreativeCommonsOpenMindsEp21 extends DefaultStreamExtractorTest {
146+
@Nested
147+
class CreativeCommonsOpenMindsEp21 extends DefaultStreamExtractorTest {
144148
private static final String ID = "open-minds-ep-21-dr-beth-harris-and-dr-steven-zucker-of-smarthistory";
145149
private static final String UPLOADER = SOUNDCLOUD + "wearecc";
146150
private static final int TIMESTAMP = 69;

0 commit comments

Comments
 (0)