Skip to content

Commit

Permalink
feat: TSYSTEMS-101
Browse files Browse the repository at this point in the history
* Adapt DefaultTranslationsServiceIT
  • Loading branch information
Leandro13Silva13 committed Jan 24, 2024
1 parent acbf5bb commit afc8a63
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit afc8a63

Please sign in to comment.