aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-12-16 21:17:07 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-12-16 21:17:07 +0100
commiteb049cd9ebff77da7cb59a338cdfc836e9e908fb (patch)
treee771cf03271266f0b34dd0fc7e0da139fc01d9da /tests/src/cgeo/geocaching/test
parentf08614446299a51e08070145c49383d23d4d61e8 (diff)
downloadcgeo-eb049cd9ebff77da7cb59a338cdfc836e9e908fb.zip
cgeo-eb049cd9ebff77da7cb59a338cdfc836e9e908fb.tar.gz
cgeo-eb049cd9ebff77da7cb59a338cdfc836e9e908fb.tar.bz2
Fix tests (GC3XX5J is disabled)
Also, limit GC3XX5J modifications to the mocked cache instead of the test itself.
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC3XX5J.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java b/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
index d468b3b..03959b9 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
@@ -5,6 +5,7 @@ import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LogType;
import cgeo.geocaching.location.Geopoint;
+import cgeo.geocaching.settings.Settings;
import org.eclipse.jdt.annotation.NonNull;
@@ -136,4 +137,15 @@ public class GC3XX5J extends MockedCache {
public String getShortDescription() {
return "Kadar zbolimo nam pomaga...<br /> <br /> When we get sick, they are helpful...";
}
+
+ @Override
+ public boolean isFound() {
+ return Settings.getUsername().equals("mucek4");
+ }
+
+ @Override
+ public boolean isDisabled() {
+ // The cache has been disabled since 2014-12-13.
+ return true;
+ }
}