aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
blob: f34faa690a1425efdef26fa282a70d766ef5b350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package cgeo.geocaching.utils;

import junit.framework.TestCase;

public class ProcessUtilsTest extends TestCase {

    public static void testIsInstalled() {
        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"));
    }

}