diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java index a5631e1..ca2e302 100644 --- a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java +++ b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java @@ -11,9 +11,9 @@ import java.util.Collection; public class OCXMLTest extends CGeoTestCase { public static void testOCGetCache() { - String geoCode = "OCDE76"; + final String geoCode = "OCDE76"; - Geocache cache = OCXMLClient.getCache(geoCode); + final Geocache cache = OCXMLClient.getCache(geoCode); assertNotNull(cache); assertEquals(geoCode, cache.getGeocode()); assertEquals("Gitarrenspielplatz", cache.getName()); @@ -24,11 +24,11 @@ public class OCXMLTest extends CGeoTestCase { public static void testOCLogAttendedAsFound() { - String oldOCName = Settings.getOCConnectorUserName(); + final String oldOCName = Settings.getOCConnectorUserName(); try { Settings.setOCConnectorUserName("ra_sch"); - String geoCode = "OCD541"; - Geocache cache = OCXMLClient.getCache(geoCode); + final String geoCode = "OCD541"; + final Geocache cache = OCXMLClient.getCache(geoCode); assertNotNull(cache); assertTrue(cache.isFound()); @@ -38,11 +38,11 @@ public class OCXMLTest extends CGeoTestCase { } public static void testOCOwner() { - String oldOCName = Settings.getOCConnectorUserName(); + final String oldOCName = Settings.getOCConnectorUserName(); try { Settings.setOCConnectorUserName("andi12.2"); - String geoCode = "OCC9BE"; - Geocache cache = OCXMLClient.getCache(geoCode); + final String geoCode = "OCC9BE"; + final Geocache cache = OCXMLClient.getCache(geoCode); assertNotNull(cache); assertTrue(cache.isOwner()); @@ -53,8 +53,8 @@ public class OCXMLTest extends CGeoTestCase { } public static void testOC0537Description() { - String geoCode = "OC0537"; - Geocache cache = OCXMLClient.getCache(geoCode); + final String geoCode = "OC0537"; + final Geocache cache = OCXMLClient.getCache(geoCode); assertNotNull(cache); assertFalse(cache.getDescription().length() < 100); @@ -62,17 +62,17 @@ public class OCXMLTest extends CGeoTestCase { public static void testNoArchivedInNearby() { - boolean oldExcludeDisabled = Settings.isExcludeDisabledCaches(); - boolean oldExcludeMine = Settings.isExcludeMyCaches(); + final boolean oldExcludeDisabled = Settings.isExcludeDisabledCaches(); + final boolean oldExcludeMine = Settings.isExcludeMyCaches(); try { Settings.setExcludeDisabledCaches(false); Settings.setExcludeMine(false); // get an archived cache - Geocache cache = OCXMLClient.getCache("OCD541"); + final Geocache cache = OCXMLClient.getCache("OCD541"); assertNotNull(cache); assertTrue(cache.isArchived()); // Get nearby for this cache - Collection<Geocache> caches = OCXMLClient.getCachesAround(cache.getCoords(), 0.5); + final Collection<Geocache> caches = OCXMLClient.getCachesAround(cache.getCoords(), 0.5); // Should not be in the result! assertFalse(caches.contains(cache)); } finally { |
