diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:04:04 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:04:04 -0800 |
| commit | e943f2fd8e7623ba3ea12bb65294d30446db4174 (patch) | |
| tree | eda2f24648d61fb33f3fa754d9fb4b5693517e0c /samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java | |
| parent | 5c11852110eeb03dc5a69111354b383f98d15336 (diff) | |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java')
| -rw-r--r-- | samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java b/samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java index 488a3490c..78fee41e9 100644 --- a/samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java +++ b/samples/ApiDemos/tests/src/com/example/android/apis/app/LocalServiceTest.java @@ -24,6 +24,8 @@ import android.os.Handler; import android.os.IBinder; import android.test.MoreAsserts; import android.test.ServiceTestCase; +import android.test.suitebuilder.annotation.MediumTest; +import android.test.suitebuilder.annotation.SmallTest; /** * This is a simple framework for a test of a Service. See {@link android.test.ServiceTestCase @@ -51,12 +53,14 @@ public class LocalServiceTest extends ServiceTestCase<LocalService> { * explain any and all failures in other tests. This is not guaranteed * to run before other tests, as junit uses reflection to find the tests. */ + @SmallTest public void testPreconditions() { } /** * Test basic startup/shutdown of Service */ + @SmallTest public void testStartable() { Intent startIntent = new Intent(); startIntent.setClass(getContext(), LocalService.class); @@ -66,6 +70,7 @@ public class LocalServiceTest extends ServiceTestCase<LocalService> { /** * Test binding to service */ + @MediumTest public void testBindable() { Intent startIntent = new Intent(); startIntent.setClass(getContext(), LocalService.class); |
