From 51cbb3ef5d660c986a2fb074bf1751b681a71a78 Mon Sep 17 00:00:00 2001 From: Austin Kirk Date: Wed, 7 Jun 2017 16:54:03 -0400 Subject: Adding two Language Enums and corresponding test language --- .../com/smartdevicelink/test/rpc/enums/LanguageTests.java | 8 ++++++++ .../java/com/smartdevicelink/proxy/rpc/enums/Language.java | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'sdl_android') diff --git a/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LanguageTests.java b/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LanguageTests.java index 3679a9ffc..66547b0f9 100644 --- a/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LanguageTests.java +++ b/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LanguageTests.java @@ -66,6 +66,10 @@ public class LanguageTests extends TestCase { Language enumDaDk = Language.valueForString(example); example = "NO-NO"; Language enumNoNo = Language.valueForString(example); + example = "EN-IN"; + Language enumEnIn = Language.valueForString(example); + example = "TH-TH"; + Language enumThTh = Language.valueForString(example); assertNotNull("EN-US returned null", enumEnUs); assertNotNull("ES-MX returned null", enumEsMx); @@ -91,6 +95,8 @@ public class LanguageTests extends TestCase { assertNotNull("CS-CZ returned null", enumCsCz); assertNotNull("DA-DK returned null", enumDaDk); assertNotNull("NO-NO returned null", enumNoNo); + assertNotNull("EN-IN returned null", enumEnIn); + assertNotNull("TH-TH returned null", enumThTh); } /** @@ -153,6 +159,8 @@ public class LanguageTests extends TestCase { enumTestList.add(Language.CS_CZ); enumTestList.add(Language.DA_DK); enumTestList.add(Language.NO_NO); + enumTestList.add(Language.EN_IN); + enumTestList.add(Language.TH_TH); assertTrue("Enum value list does not match enum class list", enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList)); diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/Language.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/Language.java index 5f0a0b88f..b569549b6 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/Language.java +++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/Language.java @@ -129,7 +129,17 @@ public enum Language { * Norwegian - Norway */ - NO_NO("NO-NO"); + NO_NO("NO-NO"), + /** + *English - India + */ + + EN_IN("EN-IN"), + /** + *Thai - Thailand + */ + + TH_TH("TH-TH"); private final String INTERNAL_NAME; -- cgit v1.2.1