summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2021-11-03 20:14:50 +0100
committerFlorian Zschocke <f.zschocke+git@gmail.com>2021-11-03 20:14:50 +0100
commitce58fac88dde01aab931c5d037a8f203e6a09db9 (patch)
treef7b66c6eceba515a3839826c5210799b355809cb /src/test/java
parentf368107aa3a25a34dab0c63f0cda0ab963f53480 (diff)
downloadgitblit-ce58fac88dde01aab931c5d037a8f203e6a09db9.tar.gz
gitblit-ce58fac88dde01aab931c5d037a8f203e6a09db9.zip
Add test for loading russian properties
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java10
1 files changed, 10 insertions, 0 deletions
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
{