From 1a1672248a7f6917d28637e47fbd7a67f3acec70 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 12 Sep 2019 15:10:23 +0200 Subject: [PATCH] Eliminate Android Studio warnings in livestream test --- .../youtube/stream/YoutubeStreamExtractorLivestreamTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java index 106ec928b..3e24b7e36 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java @@ -8,7 +8,6 @@ import org.schabi.newpipe.extractor.NewPipe; import org.schabi.newpipe.extractor.exceptions.ExtractionException; import org.schabi.newpipe.extractor.exceptions.ParsingException; import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor; -import org.schabi.newpipe.extractor.stream.StreamExtractor; import org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector; import org.schabi.newpipe.extractor.stream.StreamType; import org.schabi.newpipe.extractor.stream.VideoStream; @@ -110,7 +109,7 @@ public class YoutubeStreamExtractorLivestreamTest { @Test public void testStreamType() throws ParsingException { - assertTrue(extractor.getStreamType() == StreamType.LIVE_STREAM); + assertSame(extractor.getStreamType(), StreamType.LIVE_STREAM); } @Test @@ -129,13 +128,11 @@ public class YoutubeStreamExtractorLivestreamTest { @Test public void testGetSubtitlesListDefault() throws IOException, ExtractionException { - // Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null assertTrue(extractor.getSubtitlesDefault().isEmpty()); } @Test public void testGetSubtitlesList() throws IOException, ExtractionException { - // Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null assertTrue(extractor.getSubtitles(MediaFormat.TTML).isEmpty()); } }