aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-01-22 10:53:49 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-22 10:57:24 -0800
commit7fb0a06adafe46527523936616077e680136e7d8 (patch)
tree3c9c287d4a61674382d23f3feba7b00511f490a4 /tests/src
parent20d9638593229300fe672c149048002bb7361bbe (diff)
downloadvendor_cmsdk-7fb0a06adafe46527523936616077e680136e7d8.zip
vendor_cmsdk-7fb0a06adafe46527523936616077e680136e7d8.tar.gz
vendor_cmsdk-7fb0a06adafe46527523936616077e680136e7d8.tar.bz2
cmsdk: change persistent storage test cases to void return type
InstrumentationTestRunner only picks up methods with "public void test*" in the method signature. Change-Id: I382114c9bd12ef954f65a54f101438d1207b5d69
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/cyanogenmod/tests/hardware/unit/PersistentStorageTest.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/src/org/cyanogenmod/tests/hardware/unit/PersistentStorageTest.java b/tests/src/org/cyanogenmod/tests/hardware/unit/PersistentStorageTest.java
index a98a2b1..7f7b215 100644
--- a/tests/src/org/cyanogenmod/tests/hardware/unit/PersistentStorageTest.java
+++ b/tests/src/org/cyanogenmod/tests/hardware/unit/PersistentStorageTest.java
@@ -35,7 +35,7 @@ public class PersistentStorageTest extends AndroidTestCase {
}
@SmallTest
- public boolean testPersistentString() {
+ public void testPersistentString() {
assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
@@ -52,12 +52,10 @@ public class PersistentStorageTest extends AndroidTestCase {
// erase + read
assertTrue(mHardwareManager.deletePersistentObject(testKey));
assertNull(mHardwareManager.readPersistentString(testKey));
-
- return true;
}
@SmallTest
- public boolean testPersistentInteger() {
+ public void testPersistentInteger() {
assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
@@ -74,12 +72,10 @@ public class PersistentStorageTest extends AndroidTestCase {
// erase + read
assertTrue(mHardwareManager.deletePersistentObject(testKey));
assertEquals(0, mHardwareManager.readPersistentInt(testKey));
-
- return true;
}
@SmallTest
- public boolean testPersistentBytes() {
+ public void testPersistentBytes() {
assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
@@ -100,7 +96,5 @@ public class PersistentStorageTest extends AndroidTestCase {
// erase + read
assertTrue(mHardwareManager.deletePersistentObject(testKey));
assertNull(mHardwareManager.readPersistentBytes(testKey));
-
- return true;
}
}