aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2011-11-24 00:05:23 +0100
committerblafoo <github@blafoo.de>2011-11-24 00:05:23 +0100
commit221203e964b94c8b29b19142335d8ec5b8414601 (patch)
tree71121e8d68bc6d5acc814717e9f37a440a1f5309 /tests
parent0c5935c797edeebbd02ea43c02ccb09a76e9077a (diff)
downloadcgeo-221203e964b94c8b29b19142335d8ec5b8414601.zip
cgeo-221203e964b94c8b29b19142335d8ec5b8414601.tar.gz
cgeo-221203e964b94c8b29b19142335d8ec5b8414601.tar.bz2
Test cases for non-existing trackables and caches
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/cgeoApplicationTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
index a6e7fc2..3a0dd6f 100644
--- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java
+++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
@@ -44,6 +44,15 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> {
* Test {@link cgBase#searchTrackable(String, String, String)}
*/
@MediumTest
+ public static void testSearchTrackableNotExisting() {
+ cgTrackable tb = cgBase.searchTrackable("123456", null, null);
+ assertNotNull(tb);
+ }
+
+ /**
+ * Test {@link cgBase#searchTrackable(String, String, String)}
+ */
+ @MediumTest
public static void testSearchTrackable() {
cgTrackable tb = cgBase.searchTrackable("TB2J1VZ", null, null);
// fix data
@@ -79,6 +88,15 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> {
}
/**
+ * Test {@link cgBase#searchByGeocode(String, String, int, boolean, CancellableHandler)}
+ */
+ @MediumTest
+ public static void testSearchByGeocodeNotExisting() {
+ final cgSearch search = cgBase.searchByGeocode("GC123456", null, 0, true, null);
+ assertNull(search);
+ }
+
+ /**
* Test {@link cgBase#searchByCoords(cgSearchThread, Geopoint, String, int, boolean)}
*/
@MediumTest