diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java index a791d15101..832679376f 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java @@ -235,6 +235,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test @@ -329,6 +332,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.LIVESTREAMS, ChannelTabs.SHORTS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test @@ -426,6 +432,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test @@ -547,6 +556,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test @@ -641,6 +653,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test @@ -732,6 +747,9 @@ public void testVerified() throws Exception { public void testTabs() throws Exception { assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.SHORTS, ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS, ChannelTabs.CHANNELS); + assertTrue(extractor.getTabs().stream() + .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) + .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); } @Test