From e85144dc5cc244af62d64dcab7b0d8a6202cf5a1 Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:04:55 +0200 Subject: [PATCH] [YouTube] Remove useless method overrides and import in channel tab tests --- .../services/youtube/YoutubeChannelTabExtractorTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelTabExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelTabExtractorTest.java index 973dcd3d9..f3f40c6cb 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelTabExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelTabExtractorTest.java @@ -1,6 +1,5 @@ package org.schabi.newpipe.extractor.services.youtube; -import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.schabi.newpipe.extractor.ServiceList.YouTube; @@ -43,7 +42,6 @@ class YoutubeChannelTabExtractorTest { @Override public String expectedUrlContains() throws Exception { return "https://www.youtube.com/channel/UCTwECeGqMZee77BjdoYtI2Q/videos"; } @Override public String expectedOriginalUrlContains() throws Exception { return "https://www.youtube.com/user/creativecommons/videos"; } @Override public InfoItem.InfoType expectedInfoItemType() { return InfoItem.InfoType.STREAM; } - @Override public boolean expectedHasMoreItems() { return true; } } static class Playlists extends DefaultListExtractorTest { @@ -65,7 +63,6 @@ class YoutubeChannelTabExtractorTest { @Override public String expectedUrlContains() throws Exception { return "https://www.youtube.com/channel/UC2DjFE7Xf11URZqWBigcVOQ/playlists"; } @Override public String expectedOriginalUrlContains() throws Exception { return "https://www.youtube.com/@EEVblog/playlists"; } @Override public InfoItem.InfoType expectedInfoItemType() { return InfoItem.InfoType.PLAYLIST; } - @Override public boolean expectedHasMoreItems() { return true; } } static class Channels extends DefaultListExtractorTest { @@ -87,7 +84,6 @@ class YoutubeChannelTabExtractorTest { @Override public String expectedUrlContains() throws Exception { return "https://www.youtube.com/channel/UC2DjFE7Xf11URZqWBigcVOQ/channels"; } @Override public String expectedOriginalUrlContains() throws Exception { return "https://www.youtube.com/channel/UC2DjFE7Xf11URZqWBigcVOQ/channels"; } @Override public InfoItem.InfoType expectedInfoItemType() { return InfoItem.InfoType.CHANNEL; } - @Override public boolean expectedHasMoreItems() { return true; } } static class Livestreams extends DefaultListExtractorTest { @@ -109,7 +105,6 @@ class YoutubeChannelTabExtractorTest { @Override public String expectedUrlContains() throws Exception { return "https://www.youtube.com/channel/UCR-DXc1voovS8nhAvccRZhg/streams"; } @Override public String expectedOriginalUrlContains() throws Exception { return "https://www.youtube.com/c/JeffGeerling/streams"; } @Override public InfoItem.InfoType expectedInfoItemType() { return InfoItem.InfoType.STREAM; } - @Override public boolean expectedHasMoreItems() { return true; } } static class Shorts extends DefaultListExtractorTest { @@ -131,7 +126,6 @@ class YoutubeChannelTabExtractorTest { @Override public String expectedUrlContains() throws Exception { return "https://www.youtube.com/channel/UCh8gHdtzO2tXd593_bjErWg/shorts"; } @Override public String expectedOriginalUrlContains() throws Exception { return "https://www.youtube.com/channel/UCh8gHdtzO2tXd593_bjErWg/shorts"; } @Override public InfoItem.InfoType expectedInfoItemType() { return InfoItem.InfoType.STREAM; } - @Override public boolean expectedHasMoreItems() { return true; } } private static abstract class AgeRestrictedTabsVideosBaseTest