From 7fb0a06adafe46527523936616077e680136e7d8 Mon Sep 17 00:00:00 2001 From: Scott Mertz Date: Fri, 22 Jan 2016 10:53:49 -0800 Subject: 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 --- .../tests/hardware/unit/PersistentStorageTest.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tests/src') 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; } } -- cgit v1.1