aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/SettingsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/test/SettingsTest.java')
-rw-r--r--tests/src/cgeo/geocaching/test/SettingsTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/test/SettingsTest.java b/tests/src/cgeo/geocaching/test/SettingsTest.java
new file mode 100644
index 0000000..bb3bee8
--- /dev/null
+++ b/tests/src/cgeo/geocaching/test/SettingsTest.java
@@ -0,0 +1,27 @@
+package cgeo.geocaching.test;
+
+import cgeo.geocaching.Settings;
+import cgeo.geocaching.cgeo;
+
+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 void testSettingsException() {
+ // asserts A OR NOT A, because we don't know what the settings are on any device or emulator
+ assertTrue(Settings.isValidMapFile() || !Settings.isValidMapFile());
+ }
+}