aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-24 06:40:14 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-24 06:40:14 +0200
commite1652c16405ff34aa6272ba775e94127bb2c89b0 (patch)
treec9b5464502f823c5616c4c82fbfbc4f6d930637d /tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java
parent04f68f25f8f5174fbdb4c2656ece766abb3e6c1c (diff)
downloadcgeo-e1652c16405ff34aa6272ba775e94127bb2c89b0.zip
cgeo-e1652c16405ff34aa6272ba775e94127bb2c89b0.tar.gz
cgeo-e1652c16405ff34aa6272ba775e94127bb2c89b0.tar.bz2
fix #2049: automate download of cartridge
Diffstat (limited to 'tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java')
-rw-r--r--tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java b/tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java
new file mode 100644
index 0000000..5290c35
--- /dev/null
+++ b/tests/src/cgeo/geocaching/apps/cache/WhereYouGoAppTest.java
@@ -0,0 +1,15 @@
+package cgeo.geocaching.apps.cache;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import cgeo.geocaching.Geocache;
+
+import junit.framework.TestCase;
+
+public class WhereYouGoAppTest extends TestCase {
+ public static void testGetWhereIGoUrl() throws Exception {
+ Geocache cache = new Geocache();
+ cache.setDescription("<p style=\"max-width:670px;\"><a href=\"http://www.wherigo.com/cartridge/details.aspx?CGUID=c4577c31-09e9-44f0-ae48-83737e57adbd\"><img class=\"InsideTable\"");
+ assertThat(WhereYouGoApp.getWhereIGoUrl(cache)).isEqualTo("http://www.wherigo.com/cartridge/details.aspx?CGUID=c4577c31-09e9-44f0-ae48-83737e57adbd");
+ }
+}