add channel donations for youtube

This commit is contained in:
Christian Schabesberger
2018-04-08 15:58:42 +02:00
parent 17e7e5a359
commit 016c2fc549
3 changed files with 10 additions and 7 deletions

View File

@@ -106,11 +106,10 @@ public class YoutubeChannelExtractorTest {
}
@Test
@Ignore
public void testChannelDonation() throws Exception {
// this needs to be ignored since wed have to upgrade channel extractor to the new yt interface
// in order to make this work
assertTrue(extractor.getDonationLinks().length != 0);
assertTrue(extractor.getDonationLinks().length == 0);
}
}
@@ -217,7 +216,7 @@ public class YoutubeChannelExtractorTest {
@Test
public void testChannelDonation() throws Exception {
assertTrue(extractor.getDonationLinks().length == 0);
assertTrue(extractor.getDonationLinks().length == 1);
}
}