aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-31 09:41:16 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-31 09:41:16 +0200
commit6f3a6e60f8a8ca44494a021c911c01fa26b931bc (patch)
tree2238327dc2e8df792a2fb2b07c3e8d9a2b3ef0a5 /tests/src/cgeo
parent2bc6c925216b2b2b8cd921cd7996b4cb8657bac4 (diff)
downloadcgeo-6f3a6e60f8a8ca44494a021c911c01fa26b931bc.zip
cgeo-6f3a6e60f8a8ca44494a021c911c01fa26b931bc.tar.gz
cgeo-6f3a6e60f8a8ca44494a021c911c01fa26b931bc.tar.bz2
fix broken unit tests
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r--tests/src/cgeo/geocaching/TrackableTest.java4
-rw-r--r--tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java2
-rw-r--r--tests/src/cgeo/geocaching/files/GPXParserTest.java4
3 files changed, 4 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/TrackableTest.java b/tests/src/cgeo/geocaching/TrackableTest.java
index a2d6471..2d9c773 100644
--- a/tests/src/cgeo/geocaching/TrackableTest.java
+++ b/tests/src/cgeo/geocaching/TrackableTest.java
@@ -19,12 +19,12 @@ public class TrackableTest extends AndroidTestCase {
public static void testTrackableUrl() {
final Trackable trackable = createTrackable("TB1234");
- assertThat(trackable.getBrowserUrl()).isEqualTo("http://www.geocaching.com//track/details.aspx?tracker=TB1234");
+ assertThat(trackable.getUrl()).isEqualTo("http://www.geocaching.com//track/details.aspx?tracker=TB1234");
}
public static void testGeokretUrl() {
Trackable geokret = createTrackable("GK82A2");
- assertThat(geokret.getBrowserUrl()).isEqualTo("http://geokrety.org/konkret.php?id=33442");
+ assertThat(geokret.getUrl()).isEqualTo("http://geokrety.org/konkret.php?id=33442");
}
public static void testLoggable() {
diff --git a/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java b/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
index 93b79c5..8d80822 100644
--- a/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
+++ b/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
@@ -22,7 +22,7 @@ public class TravelBugConnectorTest extends TestCase {
public static void testGetUrl() {
final Trackable trackable = new Trackable();
trackable.setGeocode("TB2345");
- assertThat(getConnector().getBrowserUrl(trackable)).isEqualTo("http://www.geocaching.com//track/details.aspx?tracker=TB2345");
+ assertThat(getConnector().getUrl(trackable)).isEqualTo("http://www.geocaching.com//track/details.aspx?tracker=TB2345");
}
public static void testOnlineSearchBySecretCode() {
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java
index 0f85109..49b0d53 100644
--- a/tests/src/cgeo/geocaching/files/GPXParserTest.java
+++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java
@@ -16,8 +16,6 @@ import cgeo.geocaching.test.AbstractResourceInstrumentationTestCase;
import cgeo.geocaching.test.R;
import cgeo.geocaching.utils.SynchronizedDateFormat;
-import org.apache.commons.lang3.StringUtils;
-
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
@@ -320,7 +318,7 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertThat(waymark).isNotNull();
assertThat(waymark.getGeocode()).isEqualTo("WM7BM7");
assertThat(waymark.getName()).isEqualTo("Roman water pipe Kornwestheim");
- assertThat(StringUtils.isNotBlank(waymark.getBrowserUrl())).isTrue(); // connector must be able to create it
+ assertThat(waymark.getUrl()).isNotEmpty(); // connector must be able to create it
assertThat(waymark.getType()).isEqualTo(CacheType.UNKNOWN);
assertThat(waymark.getSize()).isEqualTo(CacheSize.UNKNOWN);
}