Fixed YoutubeCommentsExtractorTest
Old video was deleted / set to private
This commit is contained in:
parent
5c288eb8d7
commit
a3a0c1ee85
|
@ -308,7 +308,7 @@ public class YoutubeCommentsExtractorTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class RepliesTest {
|
public static class RepliesTest {
|
||||||
private final static String url = "https://www.youtube.com/watch?v=--yeOvJGZQk";
|
private final static String url = "https://www.youtube.com/watch?v=xaQJbozY_Is";
|
||||||
private static YoutubeCommentsExtractor extractor;
|
private static YoutubeCommentsExtractor extractor;
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
|
@ -329,9 +329,11 @@ public class YoutubeCommentsExtractorTest {
|
||||||
|
|
||||||
CommentsInfoItem firstComment = comments.getItems().get(0);
|
CommentsInfoItem firstComment = comments.getItems().get(0);
|
||||||
|
|
||||||
|
assertTrue("First comment isn't pinned", firstComment.isPinned());
|
||||||
|
|
||||||
InfoItemsPage<CommentsInfoItem> replies = extractor.getPage(firstComment.getReplies());
|
InfoItemsPage<CommentsInfoItem> replies = extractor.getPage(firstComment.getReplies());
|
||||||
|
|
||||||
assertEquals("First reply comment did not match", "Lol", replies.getItems().get(0).getCommentText());
|
assertEquals("First reply comment did not match", "First", replies.getItems().get(0).getCommentText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue