add ability to get donation links from channel

This commit is contained in:
Christian Schabesberger
2018-04-07 16:45:07 +02:00
parent 77a74b8d20
commit 1d94e7d477
5 changed files with 59 additions and 0 deletions

View File

@@ -103,6 +103,11 @@ public class YoutubeChannelExtractorTest {
public void testSubscriberCount() throws Exception {
assertTrue("Wrong subscriber count", extractor.getSubscriberCount() >= 0);
}
@Test
public void testChannelDonation() throws Exception {
assertTrue(extractor.getDonationLinks().length != 0);
}
}
public static class Kurzgesagt implements BaseChannelExtractorTest {
@@ -205,6 +210,11 @@ public class YoutubeChannelExtractorTest {
public void testSubscriberCount() throws Exception {
assertTrue("Wrong subscriber count", extractor.getSubscriberCount() >= 5e6);
}
@Test
public void testChannelDonation() throws Exception {
assertTrue(extractor.getDonationLinks().length == 0);
}
}
public static class CaptainDisillusion implements BaseChannelExtractorTest {
@@ -389,6 +399,11 @@ public class YoutubeChannelExtractorTest {
public void testSubscriberCount() throws Exception {
assertTrue("Wrong subscriber count", extractor.getSubscriberCount() >= 50);
}
@Test
public void testChannelDonation() throws Exception {
assertTrue(extractor.getDonationLinks().length == 0);
}
}
};