summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Kirk <askirk@umich.edu>2017-06-07 16:54:03 -0400
committerAustin Kirk <askirk@umich.edu>2017-06-07 16:54:03 -0400
commit51cbb3ef5d660c986a2fb074bf1751b681a71a78 (patch)
tree01629f03d93f3d51c96419906bf325f7d8c4ca77
parentb6c2062ba9699f0f407f5598583c1e39cedd80db (diff)
downloadsdl_android-51cbb3ef5d660c986a2fb074bf1751b681a71a78.tar.gz
Adding two Language Enums and corresponding test language
-rw-r--r--sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LanguageTests.java8
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/Language.java12
2 files changed, 19 insertions, 1 deletions
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;