File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010import static org .junit .jupiter .api .Assertions .*;
1111import static org .schabi .newpipe .extractor .ServiceList .PeerTube ;
12- import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs ;
12+ import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs ;
1313
1414/**
1515 * Test for {@link PeertubeChannelLinkHandlerFactory}
@@ -34,7 +34,7 @@ public void acceptUrlTest() throws ParsingException {
3434 assertTrue (linkHandler .acceptUrl ("https://peertube.stream/c/kranti_channel@videos.squat.net/videos" ));
3535 assertTrue (linkHandler .acceptUrl ("https://peertube.stream/api/v1/video-channels/7682d9f2-07be-4622-862e-93ec812e2ffa" ));
3636
37- testDoNotAcceptNonURLs (linkHandler );
37+ assertDoNotAcceptNonURLs (linkHandler );
3838 }
3939
4040 @ Test
Original file line number Diff line number Diff line change 99
1010import static org .junit .jupiter .api .Assertions .assertEquals ;
1111import static org .junit .jupiter .api .Assertions .assertTrue ;
12- import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs ;
12+ import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs ;
1313
1414/**
1515 * Test for {@link PeertubeCommentsLinkHandlerFactory}
@@ -33,7 +33,7 @@ public void acceptUrlTest() throws ParsingException {
3333 assertTrue (linkHandler .acceptUrl ("https://framatube.org/w/9c9de5e8-0a1e-484a-b099-e80766180a6d" ));
3434 assertTrue (linkHandler .acceptUrl ("https://framatube.org/api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/comment-threads?start=0&count=10&sort=-createdAt" ));
3535
36- testDoNotAcceptNonURLs (linkHandler );
36+ assertDoNotAcceptNonURLs (linkHandler );
3737 }
3838
3939 @ Test
Original file line number Diff line number Diff line change 88
99public class PeertubeLinkHandlerFactoryTestHelper {
1010
11- public static void testDoNotAcceptNonURLs (LinkHandlerFactory linkHandler )
11+ public static void assertDoNotAcceptNonURLs (LinkHandlerFactory linkHandler )
1212 throws ParsingException {
1313 assertFalse (linkHandler .acceptUrl ("orchestr/a/" ));
1414 assertFalse (linkHandler .acceptUrl ("/a/" ));
@@ -23,7 +23,7 @@ public static void testDoNotAcceptNonURLs(LinkHandlerFactory linkHandler)
2323 assertFalse (linkHandler .acceptUrl ("986513" ));
2424 }
2525
26- public static void testDoNotAcceptNonURLs (ListLinkHandlerFactory linkHandler )
26+ public static void assertDoNotAcceptNonURLs (ListLinkHandlerFactory linkHandler )
2727 throws ParsingException {
2828 assertFalse (linkHandler .acceptUrl ("orchestr/a/" ));
2929 assertFalse (linkHandler .acceptUrl ("/a/" ));
Original file line number Diff line number Diff line change 1010import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
1111import static org .junit .jupiter .api .Assertions .assertEquals ;
1212import static org .junit .jupiter .api .Assertions .assertTrue ;
13- import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs ;
13+ import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs ;
1414
1515/**
1616 * Test for {@link PeertubePlaylistLinkHandlerFactory}
@@ -35,7 +35,7 @@ void acceptUrlTest() throws ParsingException {
3535 assertTrue (linkHandler .acceptUrl ("https://framatube.org/videos/watch/playlist/96b0ee2b-a5a7-4794-8769-58d8ccb79ab7" ));
3636 assertTrue (linkHandler .acceptUrl ("https://framatube.org/w/p/96b0ee2b-a5a7-4794-8769-58d8ccb79ab7" ));
3737
38- testDoNotAcceptNonURLs (linkHandler );
38+ assertDoNotAcceptNonURLs (linkHandler );
3939 }
4040
4141 @ Test
Original file line number Diff line number Diff line change 99
1010import static org .junit .jupiter .api .Assertions .*;
1111import static org .schabi .newpipe .extractor .ServiceList .PeerTube ;
12- import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs ;
12+ import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs ;
1313
1414/**
1515 * Test for {@link PeertubeStreamLinkHandlerFactory}
@@ -73,6 +73,6 @@ public void testAcceptUrl() throws ParsingException {
7373 assertFalse (linkHandler .acceptUrl ("https://framatube.org/w/p/dacdc4ef-5160-4846-9b70-a655880da667" ));
7474 assertFalse (linkHandler .acceptUrl ("https://framatube.org/videos/watch/playlist/dacdc4ef-5160-4846-9b70-a655880da667" ));
7575
76- PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs (linkHandler );
76+ PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs (linkHandler );
7777 }
7878}
Original file line number Diff line number Diff line change 1111import static org .junit .jupiter .api .Assertions .assertEquals ;
1212import static org .junit .jupiter .api .Assertions .assertTrue ;
1313import static org .schabi .newpipe .extractor .ServiceList .PeerTube ;
14- import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs ;
14+ import static org .schabi .newpipe .extractor .services .peertube .PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs ;
1515
1616/**
1717 * Test for {@link PeertubeTrendingLinkHandlerFactory}
@@ -59,6 +59,6 @@ public void acceptUrl() throws ParsingException {
5959 assertTrue (LinkHandlerFactory .acceptUrl ("https://peertube.mastodon.host/videos/local" ));
6060 assertTrue (LinkHandlerFactory .acceptUrl ("https://peertube.mastodon.host/videos/local?adsf=fjaj#fhe" ));
6161
62- PeertubeLinkHandlerFactoryTestHelper .testDoNotAcceptNonURLs (LinkHandlerFactory );
62+ PeertubeLinkHandlerFactoryTestHelper .assertDoNotAcceptNonURLs (LinkHandlerFactory );
6363 }
6464}
You can’t perform that action at this time.
0 commit comments