File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .youtube ;
22
33import org .junit .BeforeClass ;
4- import org .junit .Ignore ;
54import org .junit .Test ;
65import org .schabi .newpipe .downloader .DownloaderFactory ;
76import org .schabi .newpipe .downloader .DownloaderTestImpl ;
1514
1615import java .io .IOException ;
1716
17+ import static org .hamcrest .CoreMatchers .containsString ;
18+ import static org .hamcrest .MatcherAssert .assertThat ;
1819import static org .junit .Assert .assertEquals ;
1920import static org .junit .Assert .assertTrue ;
2021import static org .junit .Assert .fail ;
@@ -127,10 +128,9 @@ public void testMoreRelatedItems() throws Exception {
127128 // ChannelExtractor
128129 //////////////////////////////////////////////////////////////////////////*/
129130
130- @ Ignore ("TODO fix, character ü makes problems" )
131131 @ Test
132132 public void testDescription () throws Exception {
133- assertTrue (extractor .getDescription (). contains ( "Zart im Schmelz und süffig im Abgang. Ungebremster Spieltrieb " ));
133+ assertThat (extractor .getDescription (), containsString ( "Ungebremster Spieltrieb seit 1896. " ));
134134 }
135135
136136 @ Test
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .youtube ;
22
33import org .junit .BeforeClass ;
4- import org .junit .Ignore ;
54import org .junit .Test ;
65import org .schabi .newpipe .downloader .DownloaderFactory ;
76import org .schabi .newpipe .extractor .ListExtractor .InfoItemsPage ;
@@ -132,7 +131,6 @@ public static void setUp() throws Exception {
132131 }
133132
134133 @ Test
135- @ Ignore ("TODO fix" )
136134 public void testGetCommentsAllData () throws IOException , ExtractionException {
137135 final InfoItemsPage <CommentsInfoItem > comments = extractor .getInitialPage ();
138136
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .extractor .services .youtube .search ;
22
3- import org .junit .Ignore ;
43import org .junit .Test ;
54
65import static java .util .Arrays .asList ;
76import static org .junit .Assert .assertEquals ;
87import static org .schabi .newpipe .extractor .ServiceList .YouTube ;
9- import static org .schabi .newpipe .extractor .services .youtube .linkHandler .YoutubeSearchQueryHandlerFactory .*;
8+ import static org .schabi .newpipe .extractor .services .youtube .linkHandler .YoutubeSearchQueryHandlerFactory .CHANNELS ;
9+ import static org .schabi .newpipe .extractor .services .youtube .linkHandler .YoutubeSearchQueryHandlerFactory .MUSIC_SONGS ;
10+ import static org .schabi .newpipe .extractor .services .youtube .linkHandler .YoutubeSearchQueryHandlerFactory .PLAYLISTS ;
11+ import static org .schabi .newpipe .extractor .services .youtube .linkHandler .YoutubeSearchQueryHandlerFactory .VIDEOS ;
1012import static org .schabi .newpipe .extractor .utils .Utils .EMPTY_STRING ;
1113
1214public class YoutubeSearchQHTest {
1315
1416 @ Test
15- @ Ignore ("TODO fix" )
1617 public void testRegularValues () throws Exception {
1718 assertEquals ("https://www.youtube.com/results?search_query=asdf" , YouTube .getSearchQHFactory ().fromQuery ("asdf" ).getUrl ());
1819 assertEquals ("https://www.youtube.com/results?search_query=hans" , YouTube .getSearchQHFactory ().fromQuery ("hans" ).getUrl ());
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments