summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrettyWhite <geekman3454@protonmail.com>2019-05-28 10:08:26 -0400
committerBrettyWhite <geekman3454@protonmail.com>2019-05-28 10:08:26 -0400
commite91a04c3acc8d6172ea897b293a9eea37c9f8157 (patch)
tree29848bf97a4234d347d3365eec3767d102befca2
parentdf7a87d3cdd069d0190ff3967881c0a01413a12f (diff)
downloadsdl_android-e91a04c3acc8d6172ea897b293a9eea37c9f8157.tar.gz
tests for subcell command lists
-rw-r--r--android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/SubCellCommandListTests.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/SubCellCommandListTests.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/SubCellCommandListTests.java
index f47037dbe..c25fb7f41 100644
--- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/SubCellCommandListTests.java
+++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/menu/SubCellCommandListTests.java
@@ -33,6 +33,7 @@
package com.smartdevicelink.managers.screen.menu;
import com.smartdevicelink.AndroidTestCase2;
+import com.smartdevicelink.test.Test;
public class SubCellCommandListTests extends AndroidTestCase2 {
@@ -46,4 +47,19 @@ public class SubCellCommandListTests extends AndroidTestCase2 {
super.tearDown();
}
+ public void testSettersAndGetters() {
+
+ RunScore runScore = new RunScore(Test.GENERAL_INT, Test.GENERAL_INTEGER_LIST, Test.GENERAL_INTEGER_LIST);
+
+ // set everything
+ SubCellCommandList subCellCommandList = new SubCellCommandList(Test.GENERAL_STRING, Test.GENERAL_INTEGER, runScore, Test.GENERAL_MENUCELL_LIST, Test.GENERAL_MENUCELL_LIST);
+
+ // use getters and assert equality
+ assertEquals(subCellCommandList.getMenuTitle(), Test.GENERAL_STRING);
+ assertEquals(subCellCommandList.getParentId(), Test.GENERAL_INTEGER);
+ assertEquals(runScore, runScore);
+ assertEquals(subCellCommandList.getNewList(), Test.GENERAL_MENUCELL_LIST);
+ assertEquals(subCellCommandList.getOldList(), Test.GENERAL_MENUCELL_LIST);
+
+ }
}