Skip to content

Commit beb07a4

Browse files
committed
Add test to check whether hardcoded client version is still valid
1 parent b89b6b1 commit beb07a4

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package org.schabi.newpipe.extractor.services.youtube;
2+
3+
import org.junit.BeforeClass;
4+
import org.junit.Test;
5+
import org.schabi.newpipe.DownloaderTestImpl;
6+
import org.schabi.newpipe.extractor.NewPipe;
7+
import org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeParsingHelper;
8+
9+
import static org.junit.Assert.assertTrue;
10+
11+
public class YoutubeParsingHelperTest {
12+
@BeforeClass
13+
public static void setUp() {
14+
NewPipe.init(DownloaderTestImpl.getInstance());
15+
}
16+
17+
@Test
18+
public void testIsHardcodedClientVersionValid() {
19+
assertTrue("Hardcoded client version is not valid anymore",
20+
YoutubeParsingHelper.isHardcodedClientVersionValid());
21+
}
22+
}

0 commit comments

Comments
 (0)