Update AdditionalLanguageJsControllerTest.java

This commit is contained in:
Ludy87 2025-08-10 12:30:04 +02:00
parent 445b6b4b0a
commit 789a3bd2a7
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -19,9 +19,9 @@ import stirling.software.SPDF.service.LanguageService;
class AdditionalLanguageJsControllerTest {
@Test
void returns_js_with_supported_languages_and_function() throws Exception {
void returnsJsWithSupportedLanguagesAndFunction() throws Exception {
LanguageService lang = mock(LanguageService.class);
// LinkedHashSet für deterministische Reihenfolge im Array
// LinkedHashSet for deterministic order in the array
when(lang.getSupportedLanguages())
.thenReturn(new LinkedHashSet<>(List.of("de_DE", "en_GB")));
@ -44,7 +44,7 @@ class AdditionalLanguageJsControllerTest {
}
@Test
void empty_supported_languages_yields_empty_array() throws Exception {
void emptySupportedLanguagesYieldsEmptyArray() throws Exception {
LanguageService lang = mock(LanguageService.class);
when(lang.getSupportedLanguages()).thenReturn(Set.of());