aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-01 22:30:52 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-01 22:51:40 +0100
commitf309b4637be11ce7b740e7dc843936fb707ecfb1 (patch)
treeca1fc605c5fdb45cda548c5e2f006903da01c67f /tests/src/cgeo/geocaching/connector
parent2780031fe84315e45059d14071b89954204f8eac (diff)
downloadcgeo-f309b4637be11ce7b740e7dc843936fb707ecfb1.zip
cgeo-f309b4637be11ce7b740e7dc843936fb707ecfb1.tar.gz
cgeo-f309b4637be11ce7b740e7dc843936fb707ecfb1.tar.bz2
use more nullable annotations
* make the DataStore methods use explicit nullable or nonnull return values * remove the null return of getStoredList() * unfortunately many of the test methods need an assert() statement to make Eclipse understand the null logic
Diffstat (limited to 'tests/src/cgeo/geocaching/connector')
-rw-r--r--tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
index 20a51b8..7b011f3 100644
--- a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
+++ b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
@@ -19,6 +19,7 @@ public class OkapiClientTest extends CGeoTestCase {
assertThat(cache.isDetailed()).isTrue();
// cache should be stored to DB (to listID 0) when loaded above
cache = DataStore.loadCache(geoCode, LoadFlags.LOAD_ALL_DB_ONLY);
+ assert (cache != null);
assertThat(cache).isNotNull();
assertThat(cache.getGeocode()).isEqualTo(geoCode);
assertThat(cache.getName()).isEqualTo("Oshkosh Municipal Tank");
@@ -41,6 +42,7 @@ public class OkapiClientTest extends CGeoTestCase {
assertThat(cache).as("Cache from OKAPI").isNotNull();
// cache should be stored to DB (to listID 0) when loaded above
cache = DataStore.loadCache(geoCode, LoadFlags.LOAD_ALL_DB_ONLY);
+ assert (cache != null);
assertThat(cache).isNotNull();
assertThat(cache.getWaypoints()).hasSize(3);