55import de .mediathekview .mserver .daten .Sender ;
66import de .mediathekview .mserver .base .messages .listener .MessageListener ;
77import de .mediathekview .mserver .base .config .MServerConfigManager ;
8- import de .mediathekview .mserver .crawler .ard .ArdConstants ;
98import de .mediathekview .mserver .crawler .ard .ArdCrawler ;
109import de .mediathekview .mserver .crawler .ard .ArdFilmDto ;
11- import de .mediathekview .mserver .crawler .ard .ArdFilmInfoDto ;
1210import de .mediathekview .mserver .progress .listeners .SenderProgressListener ;
1311import de .mediathekview .mserver .testhelper .AssertFilm ;
1412import de .mediathekview .mserver .testhelper .JsonFileReader ;
15- import org .hamcrest .Matchers ;
1613import org .junit .Test ;
1714import org .junit .runner .RunWith ;
1815import org .junit .runners .Parameterized ;
@@ -45,7 +42,6 @@ public class ArdFilmDeserializerTest {
4542 private final String expectedDGSUrlHd ;
4643 private final String expectedSubtitle ;
4744 private final GeoLocations expectedGeo ;
48- private final ArdFilmInfoDto [] relatedFilms ;
4945 private final Optional <Sender > additionalSender ;
5046
5147 protected MServerConfigManager rootConfig = new MServerConfigManager ("MServer-JUnit-Config.yaml" );
@@ -68,7 +64,6 @@ public ArdFilmDeserializerTest(
6864 final String expectedDGSUrlHd ,
6965 final String expectedSubtitle ,
7066 final GeoLocations expectedGeo ,
71- final ArdFilmInfoDto [] relatedFilms ,
7267 final Optional <Sender > additionalSender ) {
7368 this .jsonFile = jsonFile ;
7469 this .expectedTopic = expectedTopic ;
@@ -87,7 +82,6 @@ public ArdFilmDeserializerTest(
8782 this .expectedDGSUrlHd = expectedDGSUrlHd ;
8883 this .expectedSubtitle = expectedSubtitle ;
8984 this .expectedGeo = expectedGeo ;
90- this .relatedFilms = relatedFilms ;
9185 this .additionalSender = additionalSender ;
9286 }
9387
@@ -113,7 +107,6 @@ public static Collection<Object[]> data() {
113107 /*DGShd*/ "https://mediandr-a.akamaihd.net/progressive_geo/2022/0104/TV-20220104-0902-5000.hd.mp4" ,
114108 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/ebutt/urn:ard:subtitle:eaa2ed13a677cd00" ,
115109 /*hd*/ GeoLocations .GEO_DE ,
116- /*related*/ new ArdFilmInfoDto [0 ],
117110 /*sender*/ Optional .of (Sender .KIKA )
118111 },
119112 {
@@ -134,16 +127,6 @@ public static Collection<Object[]> data() {
134127 /*DGShd*/ "https://pd-videos.daserste.de/int/2024/01/24/03247ab1-4dcc-427e-b577-a6ca25c1dffe/JOB_432151_sendeton_1920x1080-50p-5000kbit.mp4" ,
135128 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:7b0043ec0b358eb8.vtt" ,
136129 /*hd*/ GeoLocations .GEO_NONE ,
137- /*related*/ new ArdFilmInfoDto [] {
138- new ArdFilmInfoDto (
139- "Y3JpZDovL3dkci5kZS9CZWl0cmFnLThlNjczODVlLWZhZTktNDMwYi1iNzI1LTA0NjU1ZmRmMDljZQ" ,
140- String .format (ArdConstants .ITEM_URL , "Y3JpZDovL3dkci5kZS9CZWl0cmFnLThlNjczODVlLWZhZTktNDMwYi1iNzI1LTA0NjU1ZmRmMDljZQ" ),
141- 0 ),
142- new ArdFilmInfoDto (
143- "Y3JpZDovL3dkci5kZS9CZWl0cmFnLXNvcGhvcmEtZWRmMTRhM2UtNmM3Ny00NGZhLTg1ZWYtYTJkYmZmNzM0NTg5" ,
144- String .format (ArdConstants .ITEM_URL , "Y3JpZDovL3dkci5kZS9CZWl0cmFnLXNvcGhvcmEtZWRmMTRhM2UtNmM3Ny00NGZhLTg1ZWYtYTJkYmZmNzM0NTg5" ),
145- 0 )
146- },
147130 /*sender*/ Optional .of (Sender .ARD )
148131 },
149132 {
@@ -164,12 +147,6 @@ public static Collection<Object[]> data() {
164147 /*DGShd */ "" ,
165148 /*sub*/ "" ,
166149 /*hd*/ GeoLocations .GEO_NONE ,
167- /*related*/ new ArdFilmInfoDto [] {
168- new ArdFilmInfoDto (
169- "Y3JpZDovL2JyLmRlL3ZpZGVvLzkwZTA1Y2Y5LTA4ZDEtNGU4Zi1iNTQyLWNiYjIyYzcyZDA0Mw" ,
170- String .format (ArdConstants .ITEM_URL , "Y3JpZDovL2JyLmRlL3ZpZGVvLzkwZTA1Y2Y5LTA4ZDEtNGU4Zi1iNTQyLWNiYjIyYzcyZDA0Mw" ),
171- 0 )
172- },
173150 /*sender*/ Optional .of (Sender .BR )
174151 },
175152 {
@@ -190,12 +167,6 @@ public static Collection<Object[]> data() {
190167 /*DGShd */ "" ,
191168 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:c09c9cee3bf53db8.vtt" ,
192169 /*hd*/ GeoLocations .GEO_NONE ,
193- /*related*/ new ArdFilmInfoDto [] {
194- new ArdFilmInfoDto (
195- "Y3JpZDovL3RhZ2Vzc2NoYXUuZGUvNTBjOTc0OGUtMTIwYi00MjllLWI2ODEtZTkyMTY5ODEyNGI0X2dhbnplU2VuZHVuZw" ,
196- String .format (ArdConstants .ITEM_URL , "Y3JpZDovL3RhZ2Vzc2NoYXUuZGUvNTBjOTc0OGUtMTIwYi00MjllLWI2ODEtZTkyMTY5ODEyNGI0X2dhbnplU2VuZHVuZw" ),
197- 0 )
198- },
199170 /*sender*/ Optional .of (Sender .ARD ),
200171 },
201172 {
@@ -216,7 +187,6 @@ public static Collection<Object[]> data() {
216187 /*DGShd */ "" ,
217188 /*sub*/ "" ,
218189 /*hd*/ GeoLocations .GEO_NONE ,
219- /*related*/ new ArdFilmInfoDto [0 ],
220190 /*sender*/ Optional .of (Sender .HR ),
221191 },
222192 {
@@ -237,7 +207,6 @@ public static Collection<Object[]> data() {
237207 /*DGShd */ "" ,
238208 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:ea9ad6b71df1b8ed.vtt" ,
239209 /*hd*/ GeoLocations .GEO_NONE ,
240- /*related*/ new ArdFilmInfoDto [0 ],
241210 /*sender*/ Optional .of (Sender .NDR ),
242211 },
243212 {
@@ -258,7 +227,6 @@ public static Collection<Object[]> data() {
258227 /*DGShd */ "" ,
259228 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:0567b031db73e4b9.vtt" ,
260229 /*hd*/ GeoLocations .GEO_DE ,
261- /*related*/ new ArdFilmInfoDto [0 ],
262230 /*sender*/ Optional .of (Sender .ONE ),
263231 },
264232 {
@@ -279,7 +247,6 @@ public static Collection<Object[]> data() {
279247 /*DGShd */ "" ,
280248 /*sub*/ "" ,
281249 /*hd*/ GeoLocations .GEO_NONE ,
282- /*related*/ new ArdFilmInfoDto [0 ],
283250 /*sender*/ Optional .of (Sender .RBB ),
284251 },
285252 {
@@ -300,7 +267,6 @@ public static Collection<Object[]> data() {
300267 /*DGShd */ "" ,
301268 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:a1d11ac623c7d120.vtt" ,
302269 /*hd*/ GeoLocations .GEO_NONE ,
303- /*related*/ new ArdFilmInfoDto [0 ],
304270 /*sender*/ Optional .of (Sender .ARD ),
305271 },
306272 {
@@ -321,7 +287,6 @@ public static Collection<Object[]> data() {
321287 /*DGShd */ "" ,
322288 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/ebutt/urn:ard:subtitle:7d1c01087f8cae77" ,
323289 /*hd*/ GeoLocations .GEO_DE ,
324- /*related*/ new ArdFilmInfoDto [0 ],
325290 /*sender*/ Optional .of (Sender .MDR ),
326291 },
327292 {
@@ -342,7 +307,6 @@ public static Collection<Object[]> data() {
342307 /*DGShd */ "" ,
343308 /*sub*/ "" ,
344309 /*hd*/ GeoLocations .GEO_DE ,
345- /*related*/ new ArdFilmInfoDto [0 ],
346310 /*sender*/ Optional .of (Sender .SWR ),
347311 },
348312 {
@@ -363,7 +327,6 @@ public static Collection<Object[]> data() {
363327 /*DGShd */ "" ,
364328 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:efab8bf55007171e.vtt" ,
365329 /*hd*/ GeoLocations .GEO_DE ,
366- /*related*/ new ArdFilmInfoDto [0 ],
367330 /*sender*/ Optional .of (Sender .ARD ),
368331 },
369332 {
@@ -384,7 +347,6 @@ public static Collection<Object[]> data() {
384347 /*DGShd */ "" ,
385348 /*sub*/ "https://api.ardmediathek.de/player-service/subtitle/webvtt/urn:ard:subtitle:d0e38dd26e6cc85e.vtt" ,
386349 /*hd*/ GeoLocations .GEO_DE ,
387- /*related*/ new ArdFilmInfoDto [0 ],
388350 /*sender*/ Optional .of (Sender .ONE ),
389351 }
390352 });
@@ -422,7 +384,6 @@ public void test() {
422384 expectedADUrlNormal ,
423385 expectedADUrlHd ,
424386 expectedSubtitle );
425- //assertThat(films[0].getRelatedFilms(), Matchers.containsInAnyOrder(relatedFilms));
426387 }
427388 }
428389
0 commit comments