mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 22:30:33 +05:30
remove invidiou.sh from tests
dead instance
This commit is contained in:
parent
eb3901acee
commit
261471e7f4
@ -25,10 +25,8 @@ public class YoutubeCommentsExtractorTest {
|
|||||||
|
|
||||||
private static final String urlYT = "https://www.youtube.com/watch?v=D00Au7k3i6o";
|
private static final String urlYT = "https://www.youtube.com/watch?v=D00Au7k3i6o";
|
||||||
private static final String urlInvidious = "https://invidio.us/watch?v=D00Au7k3i6o";
|
private static final String urlInvidious = "https://invidio.us/watch?v=D00Au7k3i6o";
|
||||||
private static final String urlInvidioush = "https://invidiou.sh/watch?v=D00Au7k3i6o";
|
|
||||||
private static YoutubeCommentsExtractor extractorYT;
|
private static YoutubeCommentsExtractor extractorYT;
|
||||||
private static YoutubeCommentsExtractor extractorInvidious;
|
private static YoutubeCommentsExtractor extractorInvidious;
|
||||||
private static YoutubeCommentsExtractor extractorInvidioush;
|
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setUp() throws Exception {
|
public static void setUp() throws Exception {
|
||||||
@ -37,15 +35,12 @@ public class YoutubeCommentsExtractorTest {
|
|||||||
.getCommentsExtractor(urlYT);
|
.getCommentsExtractor(urlYT);
|
||||||
extractorInvidious = (YoutubeCommentsExtractor) YouTube
|
extractorInvidious = (YoutubeCommentsExtractor) YouTube
|
||||||
.getCommentsExtractor(urlInvidious);
|
.getCommentsExtractor(urlInvidious);
|
||||||
extractorInvidioush = (YoutubeCommentsExtractor) YouTube
|
|
||||||
.getCommentsExtractor(urlInvidioush);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetComments() throws IOException, ExtractionException {
|
public void testGetComments() throws IOException, ExtractionException {
|
||||||
assertTrue(getCommentsHelper(extractorYT));
|
assertTrue(getCommentsHelper(extractorYT));
|
||||||
assertTrue(getCommentsHelper(extractorInvidious));
|
assertTrue(getCommentsHelper(extractorInvidious));
|
||||||
assertTrue(getCommentsHelper(extractorInvidioush));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean getCommentsHelper(YoutubeCommentsExtractor extractor) throws IOException, ExtractionException {
|
private boolean getCommentsHelper(YoutubeCommentsExtractor extractor) throws IOException, ExtractionException {
|
||||||
@ -65,7 +60,6 @@ public class YoutubeCommentsExtractorTest {
|
|||||||
public void testGetCommentsFromCommentsInfo() throws IOException, ExtractionException {
|
public void testGetCommentsFromCommentsInfo() throws IOException, ExtractionException {
|
||||||
assertTrue(getCommentsFromCommentsInfoHelper(urlYT));
|
assertTrue(getCommentsFromCommentsInfoHelper(urlYT));
|
||||||
assertTrue(getCommentsFromCommentsInfoHelper(urlInvidious));
|
assertTrue(getCommentsFromCommentsInfoHelper(urlInvidious));
|
||||||
assertTrue(getCommentsFromCommentsInfoHelper(urlInvidioush));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean getCommentsFromCommentsInfoHelper(String url) throws IOException, ExtractionException {
|
private boolean getCommentsFromCommentsInfoHelper(String url) throws IOException, ExtractionException {
|
||||||
|
Loading…
Reference in New Issue
Block a user