diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorTest.java index 29f88c498..d4c900a3a 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorTest.java @@ -254,15 +254,14 @@ public class YoutubeSearchExtractorTest { @Override public String expectedSearchString() { return QUERY; } @Override public String expectedSearchSuggestion() { return null; } @Override public List expectedMetaInfo() throws MalformedURLException { - final List urls = new ArrayList<>(); - urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019")); - final List urlTexts = new ArrayList<>(); - urlTexts.add("LEARN MORE"); return Collections.singletonList(new MetaInfo( "COVID-19", - new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT), - urls, - urlTexts + new Description( + "Get the latest information from the WHO about coronavirus.", + Description.PLAIN_TEXT), + Collections.singletonList( + new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019")), + Collections.singletonList("LEARN MORE") )); } // testMoreRelatedItems is broken because a video has no duration shown