blob: b442c8a69799235781a113d3be2c5db22801ae72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package cgeo.geocaching.utils;
import static org.assertj.core.api.Assertions.assertThat;
import junit.framework.TestCase;
public class ProcessUtilsTest extends TestCase {
public static void testIsInstalled() {
assertThat(ProcessUtils.isInstalled("com.android.settings")).isTrue();
}
public static void testIsInstalledNotLaunchable() {
final String packageName = "com.android.systemui";
assertThat(ProcessUtils.isInstalled(packageName)).isTrue();
assertThat(ProcessUtils.isLaunchable(packageName)).isFalse();
}
public static void testIsLaunchable() {
assertThat(ProcessUtils.isLaunchable("com.android.settings")).isTrue();
}
}
|