mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-16 13:47:28 +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 {
|
||||
|
||||
@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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user