diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-12-16 11:38:42 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-12-16 11:38:42 +0100 |
commit | 55c54fc29a7deaf9300001dfb136e0475261e84d (patch) | |
tree | e8f82b8fccac10794488fd097dc1801ee591cf22 /tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java | |
parent | f25be2fc05a0e8143bdf7c82886289d46bc2153c (diff) | |
download | cgeo-55c54fc29a7deaf9300001dfb136e0475261e84d.zip cgeo-55c54fc29a7deaf9300001dfb136e0475261e84d.tar.gz cgeo-55c54fc29a7deaf9300001dfb136e0475261e84d.tar.bz2 |
refactoring: 3 tests fail if cache type is not ALL
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java')
-rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java index ea46bbe..ec5ebe2 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java @@ -3,6 +3,7 @@ package cgeo.geocaching.connector.gc; import cgeo.geocaching.SearchResult; import cgeo.geocaching.Settings; import cgeo.geocaching.connector.ConnectorFactory; +import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.geopoint.Geopoint; import cgeo.geocaching.geopoint.Viewport; import cgeo.geocaching.test.AbstractResourceInstrumentationTestCase; @@ -12,9 +13,11 @@ public class GCConnectorTest extends AbstractResourceInstrumentationTestCase { public static void testGetViewport() { // backup user settings final boolean excludeMine = Settings.isExcludeMyCaches(); + final CacheType cacheType = Settings.getCacheType(); try { // set up settings required for test Settings.setExcludeMine(false); + Settings.setCacheType(CacheType.ALL); Login.login(); String[] tokens = Login.getMapTokens(); @@ -37,6 +40,7 @@ public class GCConnectorTest extends AbstractResourceInstrumentationTestCase { } finally { // restore user settings Settings.setExcludeMine(excludeMine); + Settings.setCacheType(cacheType); } } |