Fix tests
This commit is contained in:
parent
727e791602
commit
e4a1a6ecd8
|
@ -232,8 +232,7 @@ public class YoutubeChannelExtractorTest {
|
||||||
@Test
|
@Test
|
||||||
@Override
|
@Override
|
||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS);
|
||||||
ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS);
|
|
||||||
assertTrue(extractor.getTabs().stream()
|
assertTrue(extractor.getTabs().stream()
|
||||||
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractor
|
||||||
|
|
||||||
@Override public StreamExtractor extractor() { return extractor; }
|
@Override public StreamExtractor extractor() { return extractor; }
|
||||||
@Override public StreamingService expectedService() { return YouTube; }
|
@Override public StreamingService expectedService() { return YouTube; }
|
||||||
@Override public String expectedName() { return "lofi hip hop radio \uD83D\uDCDA - beats to relax/study to"; }
|
@Override public String expectedName() { return "lofi hip hop radio \uD83D\uDCDA beats to relax/study to"; }
|
||||||
@Override public String expectedId() { return ID; }
|
@Override public String expectedId() { return ID; }
|
||||||
@Override public String expectedUrlContains() { return YoutubeStreamExtractorDefaultTest.BASE_URL + ID; }
|
@Override public String expectedUrlContains() { return YoutubeStreamExtractorDefaultTest.BASE_URL + ID; }
|
||||||
@Override public String expectedOriginalUrlContains() { return URL; }
|
@Override public String expectedOriginalUrlContains() { return URL; }
|
||||||
|
|
Loading…
Reference in New Issue