Merge pull request #630 from XiangRongLin/fix_tests
Fix MetaInfoTest.expectedMetaInfo
This commit is contained in:
commit
519bba70b3
5 changed files with 404 additions and 397 deletions
|
@ -263,10 +263,8 @@ public class YoutubeSearchExtractorTest {
|
||||||
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
|
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
|
||||||
final List<URL> urls = new ArrayList<>();
|
final List<URL> urls = new ArrayList<>();
|
||||||
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019"));
|
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019"));
|
||||||
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines"));
|
|
||||||
final List<String> urlTexts = new ArrayList<>();
|
final List<String> urlTexts = new ArrayList<>();
|
||||||
urlTexts.add("LEARN MORE");
|
urlTexts.add("LEARN MORE");
|
||||||
urlTexts.add("Learn about vaccine progress from the WHO");
|
|
||||||
return Collections.singletonList(new MetaInfo(
|
return Collections.singletonList(new MetaInfo(
|
||||||
"COVID-19",
|
"COVID-19",
|
||||||
new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT),
|
new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT),
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue