Change youtube channel url test
This commit is contained in:
parent
b8bc57c53f
commit
09c6822b1d
|
@ -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/"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue