summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2017-07-26 13:04:58 -0400
committerJoey Grover <joeygrover@gmail.com>2017-07-26 13:04:58 -0400
commitb1c7efe0bc88049ee689aee36a22c616eef87dd9 (patch)
treee1bc22ca9f13ba4a438132c69c6d6a29d996ed19
parent5c52a5aff3ca70bcefd1eb12182d66f7da2aa49c (diff)
parent9295bf57bc78bd81f71a4cbdc6e6e6f6c3bbd661 (diff)
downloadsdl_android-feature/556.tar.gz
Merge branch 'develop' of https://github.com/smartdevicelink/sdl_android into feature/556feature/556
-rw-r--r--sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/TouchTypeTests.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/TouchTypeTests.java b/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/TouchTypeTests.java
index 06636a045..db9c417ef 100644
--- a/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/TouchTypeTests.java
+++ b/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/TouchTypeTests.java
@@ -1,16 +1,16 @@
package com.smartdevicelink.test.rpc.enums;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
+import com.smartdevicelink.proxy.rpc.enums.TouchType;
import junit.framework.TestCase;
-import com.smartdevicelink.proxy.rpc.enums.TouchType;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
/**
* This is a unit test class for the SmartDeviceLink library project class :
- * {@link com.smartdevicelink.rpc.enums.TouchType}
+ * {@link com.smartdevicelink.proxy.rpc.enums.TouchType}
*/
public class TouchTypeTests extends TestCase {
@@ -24,10 +24,14 @@ public class TouchTypeTests extends TestCase {
TouchType enumMove = TouchType.valueForString(example);
example = "END";
TouchType enumEnd = TouchType.valueForString(example);
-
+ example = "CANCEL";
+ TouchType enumCancel = TouchType.valueForString(example);
+
+
assertNotNull("BEGIN returned null", enumBegin);
assertNotNull("MOVE returned null", enumMove);
assertNotNull("END returned null", enumEnd);
+ assertNotNull("CANCEL returned null", enumCancel);
}
/**
@@ -69,6 +73,7 @@ public class TouchTypeTests extends TestCase {
enumTestList.add(TouchType.BEGIN);
enumTestList.add(TouchType.MOVE);
enumTestList.add(TouchType.END);
+ enumTestList.add(TouchType.CANCEL);
assertTrue("Enum value list does not match enum class list",
enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));