From afc8a633ca9b96885aa2759fb064efabce6b6563 Mon Sep 17 00:00:00 2001 From: LeandroSilva Date: Wed, 24 Jan 2024 14:35:50 +0100 Subject: [PATCH] feat: TSYSTEMS-101 * Adapt DefaultTranslationsServiceIT --- .../api/service/DefaultTranslationsServiceIT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/de/caritas/cob/mailservice/api/service/DefaultTranslationsServiceIT.java b/src/test/java/de/caritas/cob/mailservice/api/service/DefaultTranslationsServiceIT.java index d413fc8..5611ec4 100644 --- a/src/test/java/de/caritas/cob/mailservice/api/service/DefaultTranslationsServiceIT.java +++ b/src/test/java/de/caritas/cob/mailservice/api/service/DefaultTranslationsServiceIT.java @@ -36,7 +36,7 @@ public void clean() { @Test void fetchDefaultTranslations_Should_FetchTranlsationsForInformalGerman() { - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "de", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "de", Dialect.INFORMAL); assertThat(translations).isNotNull(); @@ -46,7 +46,7 @@ void fetchDefaultTranslations_Should_FetchTranlsationsForInformalGerman() { @Test void fetchDefaultTranslations_Should_FetchTranlsationsForFormalIfDialectNullGerman() { - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "de", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "de", null); assertThat(translations).isNotNull(); @@ -56,7 +56,7 @@ void fetchDefaultTranslations_Should_FetchTranlsationsForFormalIfDialectNullGerm @Test void fetchDefaultTranslations_Should_FetchTranlsationsForEnglish() { - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "en", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "en", null); assertThat(translations).isNotNull(); @@ -68,7 +68,7 @@ void fetchDefaultTranslations_Should_fetchExternalTranslationsForFormalIfDialect ReflectionTestUtils.setField(defaultTranslationsService, USE_CUSTOM_RESOURCES_PATH_FIELD_NAME, true); - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "de", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "de", null); assertThat(translations).isNotNull(); @@ -81,7 +81,7 @@ void fetchDefaultTranslations_Should_fetchExternalTranslationsForEnglish_When_us ReflectionTestUtils.setField(defaultTranslationsService, USE_CUSTOM_RESOURCES_PATH_FIELD_NAME, true); - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "en", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "en", null); assertThat(translations).isNotNull(); @@ -94,7 +94,7 @@ void fetchDefaultTranslations_Should_fetchExternalTranslationsForInformalGerman_ ReflectionTestUtils.setField(defaultTranslationsService, USE_CUSTOM_RESOURCES_PATH_FIELD_NAME, true); - String translations = defaultTranslationsService.fetchDefaultTranslations("mailservice", "de", + String translations = defaultTranslationsService.fetchDefaultTranslations("mailing", "de", Dialect.INFORMAL); assertThat(translations).isNotNull();