From ce58fac88dde01aab931c5d037a8f203e6a09db9 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Wed, 3 Nov 2021 20:14:50 +0100 Subject: Add test for loading russian properties --- .../com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/java') diff --git a/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java index 05549d16..f680ee7b 100644 --- a/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java +++ b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java @@ -126,6 +126,16 @@ public class GitBlitWebAppResourceBundleTest assertEquals("Português", bundle.getString("gb.loadLang")); } + + @Test + public void testRuResource() throws Exception + { + Locale l = Locale.forLanguageTag("ru"); + ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l); + assertNotNull(bundle); + assertEquals("Русский", bundle.getString("gb.loadLang")); + } + @Test public void testZhCnResource() throws Exception { -- cgit v1.2.3