aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-30 18:53:57 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-30 18:53:57 +0100
commit1cfd08a7db0682548718998edbadd920c12e464d (patch)
treeada1a7b0276f01fbe7da1bdb16488a6110622a25 /tests
parentd0ab3273c47de39d8e3d896a1314f492a61ee2a2 (diff)
downloadcgeo-1cfd08a7db0682548718998edbadd920c12e464d.zip
cgeo-1cfd08a7db0682548718998edbadd920c12e464d.tar.gz
cgeo-1cfd08a7db0682548718998edbadd920c12e464d.tar.bz2
more null annotations
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java b/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
index 8d80822..7123e87 100644
--- a/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
+++ b/tests/src/cgeo/geocaching/connector/trackable/TravelBugConnectorTest.java
@@ -26,14 +26,16 @@ public class TravelBugConnectorTest extends TestCase {
}
public static void testOnlineSearchBySecretCode() {
- Trackable trackable = getConnector().searchTrackable("GST9HV", null, null);
+ final Trackable trackable = getConnector().searchTrackable("GST9HV", null, null);
assertThat(trackable).isNotNull();
+ assert trackable != null;
assertThat(trackable.getName()).isEqualTo("Deutschland");
}
public static void testOnlineSearchByPublicCode() {
- Trackable trackable = getConnector().searchTrackable("TB4JD36", null, null);
+ final Trackable trackable = getConnector().searchTrackable("TB4JD36", null, null);
assertThat(trackable).isNotNull();
+ assert trackable != null;
assertThat(trackable.getName()).isEqualTo("Mein Kilometerzähler");
}