aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-26 19:39:36 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-26 19:39:36 +0100
commite58bd231a1b1be9a21ca043305794a6661d0b3ac (patch)
tree68931f70a378710ecca81da3aa2e86a8fda1c958 /tests
parent143947c4f7cbd91c5eedc29055555aa3556b077e (diff)
downloadcgeo-e58bd231a1b1be9a21ca043305794a6661d0b3ac.zip
cgeo-e58bd231a1b1be9a21ca043305794a6661d0b3ac.tar.gz
cgeo-e58bd231a1b1be9a21ca043305794a6661d0b3ac.tar.bz2
verify connector of lab caches
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/files/GPXParserTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java
index 2cc1f34..8562087 100644
--- a/tests/src/cgeo/geocaching/files/GPXParserTest.java
+++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java
@@ -6,6 +6,8 @@ import cgeo.geocaching.DataStore;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.LogEntry;
import cgeo.geocaching.Waypoint;
+import cgeo.geocaching.connector.ConnectorFactory;
+import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LoadFlags;
@@ -411,6 +413,9 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertThat(lab.getName()).isEqualTo("01_Munich Olympic Walk Of Stars_Updated-Project MUNICH2014 - Mia san Giga! Olympiapark");
assertThat(lab.getShortDescription()).isEqualTo("01_Munich Olympic Walk Of Stars_Updated (Giga! Olympia Park)-Project MUNICH2014 - Mia san Giga! Olympiapark");
assertThat(lab.getDescription()).startsWith("DEU:");
+
+ final IConnector unknownConnector = ConnectorFactory.getConnector("ABC123");
+ assertThat(ConnectorFactory.getConnector(lab)).isSameAs(unknownConnector);
}
}