mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-25 13:47:39 +02:00
Update AdditionalLanguageJsControllerTest.java
This commit is contained in:
parent
445b6b4b0a
commit
789a3bd2a7
@ -19,9 +19,9 @@ import stirling.software.SPDF.service.LanguageService;
|
|||||||
class AdditionalLanguageJsControllerTest {
|
class AdditionalLanguageJsControllerTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void returns_js_with_supported_languages_and_function() throws Exception {
|
void returnsJsWithSupportedLanguagesAndFunction() throws Exception {
|
||||||
LanguageService lang = mock(LanguageService.class);
|
LanguageService lang = mock(LanguageService.class);
|
||||||
// LinkedHashSet für deterministische Reihenfolge im Array
|
// LinkedHashSet for deterministic order in the array
|
||||||
when(lang.getSupportedLanguages())
|
when(lang.getSupportedLanguages())
|
||||||
.thenReturn(new LinkedHashSet<>(List.of("de_DE", "en_GB")));
|
.thenReturn(new LinkedHashSet<>(List.of("de_DE", "en_GB")));
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class AdditionalLanguageJsControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void empty_supported_languages_yields_empty_array() throws Exception {
|
void emptySupportedLanguagesYieldsEmptyArray() throws Exception {
|
||||||
LanguageService lang = mock(LanguageService.class);
|
LanguageService lang = mock(LanguageService.class);
|
||||||
when(lang.getSupportedLanguages()).thenReturn(Set.of());
|
when(lang.getSupportedLanguages()).thenReturn(Set.of());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user