File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import org .schabi .newpipe .extractor .exceptions .ExtractionException ;
99import org .schabi .newpipe .extractor .exceptions .ParsingException ;
1010import org .schabi .newpipe .extractor .services .youtube .extractors .YoutubeStreamExtractor ;
11- import org .schabi .newpipe .extractor .stream .StreamExtractor ;
1211import org .schabi .newpipe .extractor .stream .StreamInfoItemsCollector ;
1312import org .schabi .newpipe .extractor .stream .StreamType ;
1413import 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}
You can’t perform that action at this time.
0 commit comments