Skip to content

Commit fa99003

Browse files
committed
Fix duplicated ;
1 parent 1966ad1 commit fa99003

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/peertube/PeertubeStreamExtractorTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package org.schabi.newpipe.extractor.services.peertube;
22

3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.schabi.newpipe.extractor.ServiceList.PeerTube;
5+
36
import org.junit.jupiter.api.BeforeAll;
47
import org.junit.jupiter.api.Disabled;
58
import org.junit.jupiter.api.Test;
@@ -19,9 +22,6 @@
1922

2023
import javax.annotation.Nullable;
2124

22-
import static org.junit.jupiter.api.Assertions.assertEquals;
23-
import static org.schabi.newpipe.extractor.ServiceList.PeerTube;
24-
2525
public abstract class PeertubeStreamExtractorTest extends DefaultStreamExtractorTest {
2626
private static final String BASE_URL = "/videos/watch/";
2727

@@ -149,7 +149,7 @@ public static class AgeRestricted extends PeertubeStreamExtractorTest {
149149

150150
@BeforeAll
151151
public static void setUp() throws Exception {
152-
NewPipe.init(DownloaderTestImpl.getInstance());;
152+
NewPipe.init(DownloaderTestImpl.getInstance());
153153
// setting instance might break test when running in parallel (!)
154154
PeerTube.setInstance(new PeertubeInstance(INSTANCE));
155155
extractor = PeerTube.getStreamExtractor(URL);
@@ -238,21 +238,21 @@ public static void setUp() throws Exception {
238238

239239
@Test
240240
public void testGetEmptyDescription() throws Exception {
241-
StreamExtractor extractorEmpty = PeerTube.getStreamExtractor("https://framatube.org/api/v1/videos/d5907aad-2252-4207-89ec-a4b687b9337d");
241+
final StreamExtractor extractorEmpty = PeerTube.getStreamExtractor("https://framatube.org/api/v1/videos/d5907aad-2252-4207-89ec-a4b687b9337d");
242242
extractorEmpty.fetchPage();
243243
assertEquals("", extractorEmpty.getDescription().getContent());
244244
}
245245

246246
@Test
247247
public void testGetSmallDescription() throws Exception {
248-
StreamExtractor extractorSmall = PeerTube.getStreamExtractor("https://peertube.cpy.re/videos/watch/d2a5ec78-5f85-4090-8ec5-dc1102e022ea");
248+
final StreamExtractor extractorSmall = PeerTube.getStreamExtractor("https://peertube.cpy.re/videos/watch/d2a5ec78-5f85-4090-8ec5-dc1102e022ea");
249249
extractorSmall.fetchPage();
250250
assertEquals("https://www.kickstarter.com/projects/1587081065/nothing-to-hide-the-documentary", extractorSmall.getDescription().getContent());
251251
}
252252

253253
@Test
254254
public void testGetSupportInformation() throws ExtractionException, IOException {
255-
StreamExtractor supportInfoExtractor = PeerTube.getStreamExtractor("https://framatube.org/videos/watch/ee408ec8-07cd-4e35-b884-fb681a4b9d37");
255+
final StreamExtractor supportInfoExtractor = PeerTube.getStreamExtractor("https://framatube.org/videos/watch/ee408ec8-07cd-4e35-b884-fb681a4b9d37");
256256
supportInfoExtractor.fetchPage();
257257
assertEquals("https://utip.io/chatsceptique", supportInfoExtractor.getSupportInfo());
258258
}

0 commit comments

Comments
 (0)