77import org .schabi .newpipe .extractor .exceptions .ParsingException ;
88import org .schabi .newpipe .extractor .services .peertube .linkHandler .PeertubePlaylistLinkHandlerFactory ;
99
10+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
1011import static org .junit .jupiter .api .Assertions .assertEquals ;
1112import static org .junit .jupiter .api .Assertions .assertTrue ;
1213
@@ -24,7 +25,7 @@ public static void setUp() {
2425 }
2526
2627 @ Test
27- public void acceptUrlTest () throws ParsingException {
28+ void acceptUrlTest () throws ParsingException {
2829 assertTrue (linkHandler .acceptUrl ("https://framatube.org/videos/watch/playlist/d8ca79f9-e4c7-4269-8183-d78ed269c909" ));
2930 assertTrue (linkHandler .acceptUrl ("https://framatube.org/w/p/d8ca79f9-e4c7-4269-8183-d78ed269c909" ));
3031 assertTrue (linkHandler .acceptUrl ("https://framatube.org/videos/watch/playlist/d8ca79f9-e4c7-4269-8183-d78ed269c909/videos" ));
@@ -35,7 +36,7 @@ public void acceptUrlTest() throws ParsingException {
3536 }
3637
3738 @ Test
38- public void getIdFromUrl () throws ParsingException {
39+ void getIdFromUrl () throws ParsingException {
3940 assertEquals ("d8ca79f9-e4c7-4269-8183-d78ed269c909" , linkHandler .getId ("https://framatube.org/videos/watch/playlist/d8ca79f9-e4c7-4269-8183-d78ed269c909" ));
4041 assertEquals ("d8ca79f9-e4c7-4269-8183-d78ed269c909" , linkHandler .getId ("https://framatube.org/w/p/d8ca79f9-e4c7-4269-8183-d78ed269c909" ));
4142 assertEquals ("dacdc4ef-5160-4846-9b70-a655880da667" , linkHandler .getId ("https://framatube.org/videos/watch/playlist/dacdc4ef-5160-4846-9b70-a655880da667" ));
@@ -47,9 +48,9 @@ public void getIdFromUrl() throws ParsingException {
4748 }
4849
4950 @ Test
50- public void getUrl () throws ParsingException {
51- System . out . println ( linkHandler .fromUrl ("https://framatube.org/videos/watch/playlist/d8ca79f9-e4c7-4269-8183-d78ed269c909" ).getUrl ()); ;
52- System . out . println ( linkHandler .fromUrl ("https://framatube.org/w/p/d8ca79f9-e4c7-4269-8183-d78ed269c909" ).getUrl ()); ;
53- System . out . println ( linkHandler .fromUrl ("https://framatube.org/w/p/sLFbqXsw7sPR3AfvqQSBZB" ).getUrl ()); ;
51+ void getUrl () throws ParsingException {
52+ assertDoesNotThrow (() -> linkHandler .fromUrl ("https://framatube.org/videos/watch/playlist/d8ca79f9-e4c7-4269-8183-d78ed269c909" ).getUrl ());
53+ assertDoesNotThrow (() -> linkHandler .fromUrl ("https://framatube.org/w/p/d8ca79f9-e4c7-4269-8183-d78ed269c909" ).getUrl ());
54+ assertDoesNotThrow (() -> linkHandler .fromUrl ("https://framatube.org/w/p/sLFbqXsw7sPR3AfvqQSBZB" ).getUrl ());
5455 }
5556}
0 commit comments