aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java5
-rw-r--r--tests/src/cgeo/geocaching/files/GPXParserTest.java3
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java
index 2b7ef45..f9e25bf 100644
--- a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java
+++ b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java
@@ -44,9 +44,8 @@ public class CacheAttributeTest extends AndroidTestCase {
}
public static void testIsEnabled() {
- final CacheAttribute attribute = CacheAttribute.HIKING;
- final String hiking_yes = attribute.getAttributeName(true);
- final String hiking_no = attribute.getAttributeName(false);
+ final String hiking_yes = "hiking_yes";
+ final String hiking_no = "hiking_no";
assertThat(CacheAttribute.isEnabled(hiking_yes)).isTrue();
assertThat(CacheAttribute.isEnabled(hiking_no)).isFalse();
}
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java
index 4bbfbff..59b0d4f 100644
--- a/tests/src/cgeo/geocaching/files/GPXParserTest.java
+++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java
@@ -14,6 +14,7 @@ import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.test.AbstractResourceInstrumentationTestCase;
import cgeo.geocaching.test.R;
+import cgeo.geocaching.utils.DateUtils;
import cgeo.geocaching.utils.SynchronizedDateFormat;
import java.io.IOException;
@@ -177,7 +178,7 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertThat(log.log).isEqualTo("Sehr schöne Runde und wir haben wieder etwas Neues über Hockenheim gelernt. Super Tarnung.\nTFTC, Geoteufel");
assertThat(log.isOwn()).isFalse();
assertThat(log.getDisplayText()).isEqualTo(log.log);
- assertThat(log.daysSinceLog() > 700).isTrue();
+ assertThat(DateUtils.daysSince(log.date) > 700).isTrue();
// following info is not contained in pocket query gpx file
assertThat(cache.getAttributes()).isEmpty();