blob: 0d395f4acc502abae963d2ac752dd88d11e8f668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package cgeo.geocaching;
import cgeo.geocaching.connector.gc.GCConstants;
import cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider;
import android.annotation.TargetApi;
import android.test.ActivityInstrumentationTestCase2;
@TargetApi(8)
public class SettingsTest extends ActivityInstrumentationTestCase2<cgeo> {
public SettingsTest() {
super(cgeo.class);
}
@Override
protected void setUp() throws Exception {
super.setUp();
}
/**
* access settings.
* this should work fine without an exception (once there was an exception because of the empty map file string)
*/
public static void testSettingsException() {
final String mapFile = Settings.getMapFile();
// We just want to ensure that it does not throw any exception but we do not know anything about the result
MapsforgeMapProvider.isValidMapFile(mapFile);
assertTrue(true);
}
public static void testSettings() {
assertEquals(Settings.getMemberStatus(), GCConstants.MEMBER_STATUS_PM);
}
}
|