aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/SettingsTest.java
blob: 27395ec901db5b85a22a01b574777d1ecc8a7398 (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
package cgeo.geocaching;

import org.mapsforge.android.maps.MapDatabase;

import android.test.ActivityInstrumentationTestCase2;

public class SettingsTest extends ActivityInstrumentationTestCase2<cgeo> {

    public SettingsTest() {
        super("cgeo.geocaching", 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();
        assertNotNull(mapFile);
        // We just want to ensure that it does not throw any exception but we do not know anything about the result
        MapDatabase.isValidMapFile(mapFile);
    }
}