mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 16:00:33 +05:30
[YouTube] Assert that videos tab is ready after channel fetching
This commit is contained in:
parent
ee625c325c
commit
6d2227111f
@ -235,6 +235,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS,
|
||||||
ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -329,6 +332,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.LIVESTREAMS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.LIVESTREAMS,
|
||||||
ChannelTabs.SHORTS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
ChannelTabs.SHORTS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -426,6 +432,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS,
|
||||||
ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -547,6 +556,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS,
|
||||||
ChannelTabs.CHANNELS);
|
ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -641,6 +653,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS,
|
||||||
ChannelTabs.CHANNELS);
|
ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -732,6 +747,9 @@ public class YoutubeChannelExtractorTest {
|
|||||||
public void testTabs() throws Exception {
|
public void testTabs() throws Exception {
|
||||||
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS,
|
assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS,
|
||||||
ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS);
|
||||||
|
assertTrue(extractor.getTabs().stream()
|
||||||
|
.filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0)))
|
||||||
|
.allMatch(ReadyChannelTabListLinkHandler.class::isInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user