Skip to content

Commit 1a16722

Browse files
committed
Eliminate Android Studio warnings in livestream test
1 parent 3f1ba93 commit 1a16722

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
99
import org.schabi.newpipe.extractor.exceptions.ParsingException;
1010
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
11-
import org.schabi.newpipe.extractor.stream.StreamExtractor;
1211
import org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector;
1312
import org.schabi.newpipe.extractor.stream.StreamType;
1413
import org.schabi.newpipe.extractor.stream.VideoStream;
@@ -110,7 +109,7 @@ public void testGetVideoStreams() throws ExtractionException {
110109

111110
@Test
112111
public void testStreamType() throws ParsingException {
113-
assertTrue(extractor.getStreamType() == StreamType.LIVE_STREAM);
112+
assertSame(extractor.getStreamType(), StreamType.LIVE_STREAM);
114113
}
115114

116115
@Test
@@ -129,13 +128,11 @@ public void testGetRelatedVideos() throws ExtractionException, IOException {
129128

130129
@Test
131130
public void testGetSubtitlesListDefault() throws IOException, ExtractionException {
132-
// Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null
133131
assertTrue(extractor.getSubtitlesDefault().isEmpty());
134132
}
135133

136134
@Test
137135
public void testGetSubtitlesList() throws IOException, ExtractionException {
138-
// Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null
139136
assertTrue(extractor.getSubtitles(MediaFormat.TTML).isEmpty());
140137
}
141138
}

0 commit comments

Comments
 (0)