|
1 | 1 | package org.schabi.newpipe.extractor.services.media_ccc; |
2 | 2 |
|
| 3 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 4 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 5 | +import static org.schabi.newpipe.extractor.ExtractorAsserts.assertContainsImageUrlInImageCollection; |
| 6 | +import static org.schabi.newpipe.extractor.ServiceList.MediaCCC; |
| 7 | + |
3 | 8 | import org.junit.jupiter.api.BeforeAll; |
4 | 9 | import org.junit.jupiter.api.Test; |
5 | 10 | import org.schabi.newpipe.downloader.DownloaderTestImpl; |
|
10 | 15 | import org.schabi.newpipe.extractor.stream.AudioStream; |
11 | 16 | import org.schabi.newpipe.extractor.stream.StreamExtractor; |
12 | 17 | import org.schabi.newpipe.extractor.stream.StreamType; |
13 | | -import org.schabi.newpipe.extractor.utils.LocaleCompat; |
14 | | - |
15 | | -import javax.annotation.Nullable; |
16 | 18 |
|
17 | 19 | import java.util.Arrays; |
18 | 20 | import java.util.List; |
19 | 21 | import java.util.Locale; |
20 | 22 | import java.util.Objects; |
21 | 23 |
|
22 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
23 | | -import static org.junit.jupiter.api.Assertions.assertTrue; |
24 | | -import static org.schabi.newpipe.extractor.ExtractorAsserts.assertContainsImageUrlInImageCollection; |
25 | | -import static org.schabi.newpipe.extractor.ServiceList.MediaCCC; |
| 24 | +import javax.annotation.Nullable; |
26 | 25 |
|
27 | 26 | /** |
28 | 27 | * Test {@link MediaCCCStreamExtractor} |
@@ -96,7 +95,7 @@ public void testAudioStreams() throws Exception { |
96 | 95 | super.testAudioStreams(); |
97 | 96 | final List<AudioStream> audioStreams = extractor.getAudioStreams(); |
98 | 97 | assertEquals(2, audioStreams.size()); |
99 | | - final Locale expectedLocale = LocaleCompat.forLanguageTag("deu"); |
| 98 | + final Locale expectedLocale = Locale.forLanguageTag("deu"); |
100 | 99 | assertTrue(audioStreams.stream().allMatch(audioStream -> |
101 | 100 | Objects.equals(audioStream.getAudioLocale(), expectedLocale))); |
102 | 101 | } |
@@ -174,7 +173,7 @@ public void testAudioStreams() throws Exception { |
174 | 173 | super.testAudioStreams(); |
175 | 174 | final List<AudioStream> audioStreams = extractor.getAudioStreams(); |
176 | 175 | assertEquals(2, audioStreams.size()); |
177 | | - final Locale expectedLocale = LocaleCompat.forLanguageTag("eng"); |
| 176 | + final Locale expectedLocale = Locale.forLanguageTag("eng"); |
178 | 177 | assertTrue(audioStreams.stream().allMatch(audioStream -> |
179 | 178 | Objects.equals(audioStream.getAudioLocale(), expectedLocale))); |
180 | 179 | } |
|
0 commit comments