From 111eaef65eadb761d9593c88a63bc5949789d77d Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Wed, 20 Oct 2021 21:05:02 +0200 Subject: Add a unit test to check if the resource bundle can be loaded To prevent that we have a resource file in a resource bundle broken and not loading undiscovered for years, add a unit test that will load the resource properties file for each of the languages. In order to check if the file was loaded and the bundle mechanism didn't fall back on the default, a new property key is added to each language file, solely for the purpose to be checked in the unit test. --- src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties') diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties index b4a675ce..23ab1187 100644 --- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties +++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties @@ -784,3 +784,7 @@ gb.deletePatchsetSuccess = {0} \uD328\uCE58\uC14B\uC774 \uC0AD\uC81C\uB418\uC5C8 gb.deletePatchsetFailure = {0} \uD328\uCE58\uC14B \uC0AD\uC81C \uC624\uB958. gb.referencedByCommit = \uCEE4\uBC0B\uC5D0 \uCC38\uC870\uB428. gb.referencedByTicket = \uD2F0\uCF13\uC5D0 \uCC38\uC870\uB428. + +# This last property for unit tests to test successful loading of the resource file +gb.loadLang = \ud55c\uad6d\uc5b4 + -- cgit v1.2.3