aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/test/Compare.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/test/Compare.java')
-rw-r--r--tests/src/cgeo/test/Compare.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/cgeo/test/Compare.java b/tests/src/cgeo/test/Compare.java
index dcfd77a..e4e7aac 100644
--- a/tests/src/cgeo/test/Compare.java
+++ b/tests/src/cgeo/test/Compare.java
@@ -1,6 +1,7 @@
package cgeo.test;
import static junit.framework.Assert.assertEquals;
+import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertTrue;
import cgeo.geocaching.Geocache;
@@ -10,6 +11,7 @@ import cgeo.geocaching.enumerations.LogType;
public abstract class Compare {
public static void assertCompareCaches(ICache expected, Geocache actual, boolean all) {
+ assertNotNull(actual);
assertEquals(expected.getGeocode(), actual.getGeocode());
assertTrue(expected.getType() == actual.getType());
assertEquals(expected.getOwnerDisplayName(), actual.getOwnerDisplayName());
@@ -36,7 +38,7 @@ public abstract class Compare {
assertEquals(expected.getLocation(), actual.getLocation());
assertEquals(expected.isFound(), actual.isFound());
assertEquals(expected.isFavorite(), actual.isFavorite());
- assertEquals(expected.isWatchlist(), actual.isWatchlist());
+ assertEquals(expected.isOnWatchlist(), actual.isOnWatchlist());
for (String attribute : expected.getAttributes()) {
assertTrue("Expected attribute '" + attribute + "' not found in " + actual.getGeocode(), actual.getAttributes().contains(attribute));