Change youtube channel url test

This commit is contained in:
Stypox 2019-08-12 13:13:41 +02:00
parent b8bc57c53f
commit 09c6822b1d
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 1 additions and 2 deletions

View File

@ -68,9 +68,8 @@ public class YoutubeSearchExtractorChannelOnlyTest extends YoutubeSearchExtracto
@Test @Test
public void testChannelUrl() { public void testChannelUrl() {
for(InfoItem item : itemsPage.getItems()) { for(InfoItem item : itemsPage.getItems()) {
if (item.getName().contains("PewDiePie")) { if (item.getName().equals("PewDiePie")) {
assertEquals("https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw", item.getUrl()); assertEquals("https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw", item.getUrl());
break;
} else { } else {
assertThat(item.getUrl(), CoreMatchers.startsWith("https://www.youtube.com/channel/")); assertThat(item.getUrl(), CoreMatchers.startsWith("https://www.youtube.com/channel/"));
} }