From bb1ab166bf804980031068516d417858c9894ccc Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Tue, 1 Aug 2023 22:19:43 +0200 Subject: [PATCH] [YouTube] Test that no banner is returned for carouselHeaderRenders --- .../services/youtube/YoutubeChannelExtractorTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 b5793a0b4..fb851de63 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 @@ -2,6 +2,7 @@ package org.schabi.newpipe.extractor.services.youtube; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; @@ -720,7 +721,8 @@ public class YoutubeChannelExtractorTest { @Test public void testBannerUrl() throws Exception { - // CarouselHeaderRender does not contain a banner + // CarouselHeaderRenders do not contain a banner + assertNull(extractor.getBannerUrl()); } @Test