diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-01-12 07:43:18 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-01-12 07:43:18 +0100 |
| commit | 24813f0bbe3f227b663c5752a5e64d68043608e6 (patch) | |
| tree | c737f2070b6bbdf0edd81e55b1c11ea5c8539b85 /tests/src/cgeo/geocaching/connector/gc | |
| parent | 91bd1f845d4b803c33c6e05df021def81726d8d3 (diff) | |
| download | cgeo-24813f0bbe3f227b663c5752a5e64d68043608e6.zip cgeo-24813f0bbe3f227b663c5752a5e64d68043608e6.tar.gz cgeo-24813f0bbe3f227b663c5752a5e64d68043608e6.tar.bz2 | |
enable eclipse null analysis on test project
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java index 43b6d01..53c393b 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java @@ -56,6 +56,8 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { assertNotNull(result); assertEquals(1, result.getCount()); final Geocache cache = result.getFirstCacheFromResult(LoadFlags.LOAD_CACHE_OR_DB); + assertNotNull(cache); + assert (cache != null); // eclipse bug assertEquals(cacheName, cache.getName()); } @@ -158,6 +160,8 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { cache.drop(new Handler()); final String page = GCParser.requestHtmlPage(cache.getGeocode(), null, "n", "0"); final Geocache cache2 = GCParser.parseCacheFromText(page, null).getFirstCacheFromResult(LoadFlags.LOAD_CACHE_ONLY); + assertNotNull(cache2); + assert (cache2 != null); // eclipse bug assertTrue(cache2.hasUserModifiedCoords()); assertEquals(new Geopoint("N51 21.544", "E07 02.566"), cache2.getCoords()); // delete coordinates @@ -165,6 +169,8 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { cache2.drop(new Handler()); final String page2 = GCParser.requestHtmlPage(cache.getGeocode(), null, "n", "0"); final Geocache cache3 = GCParser.parseCacheFromText(page2, null).getFirstCacheFromResult(LoadFlags.LOAD_CACHE_ONLY); + assertNotNull(cache3); + assert (cache3 != null); // eclipse bug assertFalse(cache3.hasUserModifiedCoords()); } |
