diff --git a/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdDayPageDeserializerTest.java b/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdDayPageDeserializerTest.java index af5015bcb..7d7d07e6d 100644 --- a/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdDayPageDeserializerTest.java +++ b/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdDayPageDeserializerTest.java @@ -22,35 +22,35 @@ public void testDeserialize() { new ArdFilmInfoDto[] { new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzc", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzc", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzc"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzg", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzg", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5Nzg"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5ODI", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5ODI", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5ODI"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE4MjA", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE4MjA", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE4MjA"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDEyMDM", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDEyMDM", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDEyMDM"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5OTI", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5OTI", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5OTI"), 7), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzI", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzI", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzI"), 1), new ArdFilmInfoDto( "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzE", - ArdConstants.ITEM_URL + "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzE", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL2hyLW9ubGluZS8xMDE5NzE"), 1) }; diff --git a/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdTopicPageDeserializerTest.java b/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdTopicPageDeserializerTest.java index bcab74769..a504053ee 100644 --- a/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdTopicPageDeserializerTest.java +++ b/src/test/java/de/mediathekview/mserver/crawler/ard/json/ArdTopicPageDeserializerTest.java @@ -1,6 +1,8 @@ package de.mediathekview.mserver.crawler.ard.json; import com.google.gson.JsonElement; + +import de.mediathekview.mserver.crawler.ard.ArdConstants; import de.mediathekview.mserver.crawler.ard.ArdFilmInfoDto; import de.mediathekview.mserver.crawler.ard.ArdTopicInfoDto; import de.mediathekview.mserver.testhelper.JsonFileReader; @@ -21,23 +23,23 @@ public void testDeserialize() { new ArdFilmInfoDto[]{ new ArdFilmInfoDto( "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzFmOTkwMzNlLWY1MjUtNDk4Yy1iZjQ5LWIwZjZjYjhjNzRkYQ", - "https://api.ardmediathek.de/page-gateway/pages/ard/item/Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzFmOTkwMzNlLWY1MjUtNDk4Yy1iZjQ5LWIwZjZjYjhjNzRkYQ", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzFmOTkwMzNlLWY1MjUtNDk4Yy1iZjQ5LWIwZjZjYjhjNzRkYQ"), 0), new ArdFilmInfoDto( "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzkzM2QzZjFjLTlkMWQtNGFlNy1hNDA5LTlhMjdjNGI0NTdjZA", - "https://api.ardmediathek.de/page-gateway/pages/ard/item/Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzkzM2QzZjFjLTlkMWQtNGFlNy1hNDA5LTlhMjdjNGI0NTdjZA", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzkzM2QzZjFjLTlkMWQtNGFlNy1hNDA5LTlhMjdjNGI0NTdjZA"), 0), new ArdFilmInfoDto( "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzg1NTVhNjlmLWNkMDMtNDY3ZS04MWJmLWU3YmI4YjIxNGJjMw", - "https://api.ardmediathek.de/page-gateway/pages/ard/item/Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzg1NTVhNjlmLWNkMDMtNDY3ZS04MWJmLWU3YmI4YjIxNGJjMw", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL3JhZGlvYnJlbWVuLmRlLzg1NTVhNjlmLWNkMDMtNDY3ZS04MWJmLWU3YmI4YjIxNGJjMw"), 0), new ArdFilmInfoDto( "Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2FhNDRiYTVhLWMzOWItNDgyMy1iNDZjLTZhMjBlYTAyN2I0ZQ", - "https://api.ardmediathek.de/page-gateway/pages/ard/item/Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2FhNDRiYTVhLWMzOWItNDgyMy1iNDZjLTZhMjBlYTAyN2I0ZQ", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2FhNDRiYTVhLWMzOWItNDgyMy1iNDZjLTZhMjBlYTAyN2I0ZQ"), 0), new ArdFilmInfoDto( "Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2M2MzU2NTJjLWVkYTAtNDNkNS05ZTJkLTliMzBkZTI2NzM2Mw", - "https://api.ardmediathek.de/page-gateway/pages/ard/item/Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2M2MzU2NTJjLWVkYTAtNDNkNS05ZTJkLTliMzBkZTI2NzM2Mw", + String.format(ArdConstants.ITEM_URL, "Y3JpZDovL3JhZGlvYnJlbWVuLmRlL2M2MzU2NTJjLWVkYTAtNDNkNS05ZTJkLTliMzBkZTI2NzM2Mw"), 0), };