aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-02-24 21:44:20 +0100
committerblafoo <github@blafoo.de>2012-02-24 22:17:32 +0100
commit0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f (patch)
treead3acc3ce228c170784db34f651d84f01ff52a6a /tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java
parentb5be674f2344140f89b8d49f5111ff86c519281c (diff)
downloadcgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.zip
cgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.tar.gz
cgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.tar.bz2
New connector functionality
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java')
-rw-r--r--tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java
index 4271dd4..e86dc06 100644
--- a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java
+++ b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java
@@ -2,6 +2,7 @@ package cgeo.geocaching.connector.gc;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.cgBase;
+import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.geopoint.Viewport;
@@ -17,7 +18,7 @@ public class GCConnectorTest extends AndroidTestCase {
{
final Viewport viewport = new Viewport(new Geopoint("N 52° 25.369 E 9° 35.499"), new Geopoint("N 52° 25.371 E 9° 35.501"));
- SearchResult searchResult = GCBase.searchByViewport(viewport, tokens);
+ SearchResult searchResult = ConnectorFactory.searchByViewport(viewport, tokens);
assertTrue(searchResult != null);
assertTrue(searchResult.getCount() > 130);
assertTrue(searchResult.getGeocodes().contains("GC211WG"));
@@ -26,7 +27,7 @@ public class GCConnectorTest extends AndroidTestCase {
{
final Viewport viewport = new Viewport(new Geopoint("N 52° 24.000 E 9° 34.500"), new Geopoint("N 52° 26.000 E 9° 38.500"));
- SearchResult searchResult = GCBase.searchByViewport(viewport, tokens);
+ SearchResult searchResult = ConnectorFactory.searchByViewport(viewport, tokens);
assertTrue(searchResult != null);
assertTrue(searchResult.getGeocodes().contains("GC211WG"));
}