File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import static org .junit .Assert .assertEquals ;
44import static org .schabi .newpipe .extractor .ServiceList .PeerTube ;
55
6+ import org .junit .BeforeClass ;
67import org .junit .Test ;
78
89public class PeertubeSearchQHTest {
10+
11+ @ BeforeClass
12+ public static void setUpClass () throws Exception {
13+ // setting instance might break test when running in parallel
14+ PeerTube .setInstance ("https://peertube.mastodon.host" , "PeerTube on Mastodon.host" );
15+ }
916
1017 @ Test
1118 public void testRegularValues () throws Exception {
@@ -15,4 +22,4 @@ public void testRegularValues() throws Exception {
1522 assertEquals ("https://peertube.mastodon.host/api/v1/search/videos?search=G%C3%BCl%C3%BCm" , PeerTube .getSearchQHFactory ().fromQuery ("Gülüm" ).getUrl ());
1623 assertEquals ("https://peertube.mastodon.host/api/v1/search/videos?search=%3Fj%24%29H%C2%A7B" , PeerTube .getSearchQHFactory ().fromQuery ("?j$)H§B" ).getUrl ());
1724 }
18- }
25+ }
You can’t perform that action at this time.
0 commit comments