Skip to content

Commit 05a6abe

Browse files
committed
searchfilters: Test: adjust MediaCCC tests
1 parent 97c9b60 commit 05a6abe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/search/MediaCCCSearchExtractorTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
import org.schabi.newpipe.extractor.StreamingService;
88
import org.schabi.newpipe.extractor.search.SearchExtractor;
99
import org.schabi.newpipe.extractor.services.DefaultSearchExtractorTest;
10+
import org.schabi.newpipe.extractor.services.media_ccc.search.filter.MediaCCCFilters;
11+
1012

1113
import javax.annotation.Nullable;
1214

1315
import static java.util.Collections.singletonList;
1416
import static org.schabi.newpipe.extractor.ServiceList.MediaCCC;
15-
import static org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCSearchQueryHandlerFactory.CONFERENCES;
16-
import static org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCSearchQueryHandlerFactory.EVENTS;
1717

1818
public class MediaCCCSearchExtractorTest {
1919
public static class All extends DefaultSearchExtractorTest {
@@ -46,7 +46,8 @@ public static class Conferences extends DefaultSearchExtractorTest {
4646
@BeforeAll
4747
public static void setUp() throws Exception {
4848
NewPipe.init(DownloaderTestImpl.getInstance());
49-
extractor = MediaCCC.getSearchExtractor(QUERY, singletonList(CONFERENCES), "");
49+
extractor = MediaCCC.getSearchExtractor(QUERY, singletonList(
50+
getFilterItem(MediaCCC, MediaCCCFilters.ID_CF_MAIN_CONFERENCES)), null);
5051
extractor.fetchPage();
5152
}
5253

@@ -70,7 +71,8 @@ public static class Events extends DefaultSearchExtractorTest {
7071
@BeforeAll
7172
public static void setUp() throws Exception {
7273
NewPipe.init(DownloaderTestImpl.getInstance());
73-
extractor = MediaCCC.getSearchExtractor(QUERY, singletonList(EVENTS), "");
74+
extractor = MediaCCC.getSearchExtractor(QUERY, singletonList(
75+
getFilterItem(MediaCCC, MediaCCCFilters.ID_CF_MAIN_EVENTS)), null);
7476
extractor.fetchPage();
7577
}
7678

0 commit comments

Comments
 (0)