From 17bad6cedf443c80dfd3710a786624e36f4d40b6 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 4 Aug 2022 10:21:12 +0200 Subject: [PATCH] Fix test about exception type: NPE, not IllegalArgment The relevant change was made in #877 --- .../services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java index 3e4d7bdf4..d39c2f4e0 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java @@ -24,7 +24,7 @@ public class YoutubeCommentsLinkHandlerFactoryTest { @Test public void getIdWithNullAsUrl() { - assertThrows(IllegalArgumentException.class, () -> linkHandler.fromId(null)); + assertThrows(NullPointerException.class, () -> linkHandler.fromId(null)); } @Test