From 4e45aef2b3d95e1a5b99e0dc2a71a9410046ab04 Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Sun, 21 Feb 2021 18:16:59 +0100 Subject: [PATCH] Fix SoundCloud CreativeCommonsPlaysWellWithOthers test --- .../soundcloud/SoundcloudStreamExtractorTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudStreamExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudStreamExtractorTest.java index 4d9afab85..69a415c0e 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudStreamExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudStreamExtractorTest.java @@ -25,8 +25,8 @@ public class SoundcloudStreamExtractorTest { @Test(expected = GeographicRestrictionException.class) public void geoRestrictedContent() throws Exception { final String id = "one-touch"; - final String uploader = "jessglynne"; - final String url = SOUNDCLOUD + uploader + "/" + id; + final String uploader = SOUNDCLOUD + "jessglynne"; + final String url = uploader + "/" + id; final StreamExtractor extractor = SoundCloud.getStreamExtractor(url); extractor.fetchPage(); } @@ -34,8 +34,8 @@ public class SoundcloudStreamExtractorTest { @Test(expected = SoundCloudGoPlusContentException.class) public void goPlusContent() throws Exception { final String id = "places"; - final String uploader = "martinsolveig"; - final String url = SOUNDCLOUD + uploader + "/" + id; + final String uploader = SOUNDCLOUD + "martinsolveig"; + final String url = uploader + "/" + id; final StreamExtractor extractor = SoundCloud.getStreamExtractor(url); extractor.fetchPage(); } @@ -43,9 +43,9 @@ public class SoundcloudStreamExtractorTest { public static class CreativeCommonsPlaysWellWithOthers extends DefaultStreamExtractorTest { private static final String ID = "plays-well-with-others-ep-2-what-do-an-army-of-ants-and-an-online-encyclopedia-have-in-common"; - private static final String UPLOADER = "wearecc"; + private static final String UPLOADER = SOUNDCLOUD + "wearecc"; private static final int TIMESTAMP = 69; - private static final String URL = SOUNDCLOUD + UPLOADER + "/" + ID + "#t=" + TIMESTAMP; + private static final String URL = UPLOADER + "/" + ID + "#t=" + TIMESTAMP; private static StreamExtractor extractor; @BeforeClass