<NME> SettingsTest.java
<BEF> package cgeo.geocaching;

import cgeo.geocaching.settings.Settings;

import android.annotation.TargetApi;
import android.test.ActivityInstrumentationTestCase2;

import static org.assertj.core.api.Java6Assertions.assertThat;

@TargetApi(8)
public class SettingsTest extends ActivityInstrumentationTestCase2<MainActivity> {

    public SettingsTest() {
        super(MainActivity.class);
    }

    public static void testSettings() {
        // unfortunately, several other tests depend on being a premium member and will fail if run by a basic member
        assertThat(Settings.isGCPremiumMember()).isTrue();
    }
     */
    public static void testSettingsException() {
        // We just want to ensure that it does not throw any exception but we do not know anything about the result
        MapsforgeMapProvider.isValidMapFile(Settings.getMapFile());
    }

    public static void testSettings() {

<MSG> related to #8457: let Mapsforge use Uris instead of Files

<DFF> @@ -21,7 +21,7 @@ public class SettingsTest extends ActivityInstrumentationTestCase2<MainActivity>
      */
     public static void testSettingsException() {
         // We just want to ensure that it does not throw any exception but we do not know anything about the result
-        MapsforgeMapProvider.isValidMapFile(Settings.getMapFile());
+        MapsforgeMapProvider.isValidMapFile(null);
     }
 
     public static void testSettings() {

related to #8457: let Mapsforge use Uris instead of Files