aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java b/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
index d2d282b..f34faa6 100644
--- a/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
+++ b/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
@@ -8,4 +8,14 @@ public class ProcessUtilsTest extends TestCase {
assertTrue(ProcessUtils.isInstalled("com.android.launcher"));
}
+ public static void testIsInstalledNotLaunchable() {
+ final String packageName = "com.android.systemui";
+ assertTrue(ProcessUtils.isInstalled(packageName));
+ assertFalse(ProcessUtils.isLaunchable(packageName));
+ }
+
+ public static void testIsLaunchable() {
+ assertTrue(ProcessUtils.isInstalled("com.android.settings"));
+ }
+
}