Add Korean test file for Lion localization
Change-Id: I08a680d42e94be9c9032fb53af0d723cb22008c9
diff --git a/core/api/src/test/java/org/onosproject/ui/lion/LionUtilsTest.java b/core/api/src/test/java/org/onosproject/ui/lion/LionUtilsTest.java
index ad693cd..2ac324d 100644
--- a/core/api/src/test/java/org/onosproject/ui/lion/LionUtilsTest.java
+++ b/core/api/src/test/java/org/onosproject/ui/lion/LionUtilsTest.java
@@ -135,6 +135,14 @@
}
@Test
+ @Ignore("Not korean friendly, yet...")
+ public void messagesInKorean() {
+ title("messagesInKorean");
+ Locale.setDefault(Locale.KOREA);
+ checkLookups("컴퓨터", "디스크", "모니터", "키보드");
+ }
+
+ @Test
public void runtimeLocale() {
title("runtimeLocale");
Locale runtime = LionUtils.setupRuntimeLocale();
@@ -197,6 +205,13 @@
}
@Test
+ public void localeFromStringKoKR() {
+ title("localeFromStringKoKR");
+ locale = LionUtils.localeFromString("ko_KR");
+ checkLanguageCountry(locale, "ko", "KR");
+ }
+
+ @Test
@Ignore("Jenkins not chinese friendly, yet...")
public void messagesInZhTw() {
title("messagesInZhTW");
diff --git a/core/api/src/test/resources/org/onosproject/ui/lion/MyBundle_ko.properties b/core/api/src/test/resources/org/onosproject/ui/lion/MyBundle_ko.properties
new file mode 100644
index 0000000..dd52837
--- /dev/null
+++ b/core/api/src/test/resources/org/onosproject/ui/lion/MyBundle_ko.properties
@@ -0,0 +1,20 @@
+#
+# Copyright 2017-present Open Networking Laboratory
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+computer=컴퓨터
+disk=디스크
+monitor=모니터
+keyboard=키보드