diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-01-30 18:53:57 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-01-30 18:53:57 +0100 |
commit | 1cfd08a7db0682548718998edbadd920c12e464d (patch) | |
tree | ada1a7b0276f01fbe7da1bdb16488a6110622a25 /tests | |
parent | d0ab3273c47de39d8e3d896a1314f492a61ee2a2 (diff) | |
download | cgeo-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.java | 6 |
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"); } |