diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2015-01-01 23:19:15 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2015-01-01 23:19:15 +0100 |
| commit | 839a82a1dda9de1d3cd126f874645cec4425c04f (patch) | |
| tree | d29c6610641e9871a50663cf0df7dce4481e809f /tests/src/cgeo/geocaching/connector | |
| parent | 5a9eb4f42b3f22be6fe28da09c8635ac09d814ed (diff) | |
| download | cgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.zip cgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.tar.gz cgeo-839a82a1dda9de1d3cd126f874645cec4425c04f.tar.bz2 | |
refactoring: assert without parenthesis
Diffstat (limited to 'tests/src/cgeo/geocaching/connector')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | 6 | ||||
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java index 254d0b8..058163a 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java @@ -57,7 +57,7 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { assertThat(result.getCount()).isEqualTo(1); final Geocache cache = result.getFirstCacheFromResult(LoadFlags.LOAD_CACHE_OR_DB); assertThat(cache).isNotNull(); - assert (cache != null); // eclipse bug + assert cache != null; // eclipse bug assertThat(cache.getName()).isEqualTo(cacheName); } @@ -160,7 +160,7 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { final String page = GCParser.requestHtmlPage(cache.getGeocode(), null, "n"); final Geocache cache2 = GCParser.parseAndSaveCacheFromText(page, null).getFirstCacheFromResult(LoadFlags.LOAD_CACHE_ONLY); assertThat(cache2).isNotNull(); - assert (cache2 != null); // eclipse bug + assert cache2 != null; // eclipse bug assertThat(cache2.hasUserModifiedCoords()).isTrue(); assertEquals(new Geopoint("N51 21.544", "E07 02.566"), cache2.getCoords()); // delete coordinates @@ -169,7 +169,7 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { final String page2 = GCParser.requestHtmlPage(cache.getGeocode(), null, "n"); final Geocache cache3 = GCParser.parseAndSaveCacheFromText(page2, null).getFirstCacheFromResult(LoadFlags.LOAD_CACHE_ONLY); assertThat(cache3).isNotNull(); - assert (cache3 != null); // eclipse bug + assert cache3 != null; // eclipse bug assertThat(cache3.hasUserModifiedCoords()).isFalse(); } diff --git a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java index 7b011f3..aa66ac9 100644 --- a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java +++ b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java @@ -19,7 +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); + assert cache != null; assertThat(cache).isNotNull(); assertThat(cache.getGeocode()).isEqualTo(geoCode); assertThat(cache.getName()).isEqualTo("Oshkosh Municipal Tank"); @@ -42,7 +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); + assert cache != null; assertThat(cache).isNotNull(); assertThat(cache.getWaypoints()).hasSize(3); |
