package cgeo.geocaching; import org.mapsforge.android.maps.MapDatabase; import android.test.ActivityInstrumentationTestCase2; public class SettingsTest extends ActivityInstrumentationTestCase2 { 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); } }