diff --git a/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistryTest.java b/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistryTest.java index 12ede04a..480fe2a2 100644 --- a/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistryTest.java +++ b/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistryTest.java @@ -30,6 +30,7 @@ import java.nio.file.StandardCopyOption; import java.util.Collections; import java.util.HashMap; +import java.util.Locale; import java.util.Map; import org.apache.jackrabbit.vault.packaging.NoSuchPackageException; @@ -112,6 +113,18 @@ public void testCacheInitializedAfterOSGiActivate() throws IOException { assertEquals(Collections.singleton(TEST_PACKAGE_ID), registry.packages()); } + @Test + public void testCacheInitializedAfterOSGiActivateLocaleTr() throws IOException { + Locale defaultLocale = Locale.getDefault(); + try { + Locale.setDefault(new Locale("tr", "TR")); + testCacheInitializedAfterOSGiActivate(); + } + finally { + Locale.setDefault(defaultLocale); + } + } + private FSPackageRegistry createRegistryWithDefaultConstructor(Path homePath) throws IOException { FSPackageRegistry registry = new FSPackageRegistry(); BundleContext context = Mockito.mock(BundleContext.class);