diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-01-27 20:12:05 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-01-27 20:12:05 +0100 |
commit | c9ec99080115f7d981e11f8573ae2cd874cd7b8b (patch) | |
tree | 38756f2e7a51f139f4bef96e04ae54ce6f8c0a77 /tests | |
parent | 9b02b846845885334991555b0d7ad4c811b1e264 (diff) | |
download | cgeo-c9ec99080115f7d981e11f8573ae2cd874cd7b8b.zip cgeo-c9ec99080115f7d981e11f8573ae2cd874cd7b8b.tar.gz cgeo-c9ec99080115f7d981e11f8573ae2cd874cd7b8b.tar.bz2 |
new: sort event caches by date AND time
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/cgeo/geocaching/GeocacheTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/GeocacheTest.java b/tests/src/cgeo/geocaching/GeocacheTest.java index 37b6883..3e29bcf 100644 --- a/tests/src/cgeo/geocaching/GeocacheTest.java +++ b/tests/src/cgeo/geocaching/GeocacheTest.java @@ -302,7 +302,7 @@ public class GeocacheTest extends CGeoTestCase { cache.setType(CacheType.EVENT); cache.setDescription(StringUtils.EMPTY); cache.setShortDescription("text 14:20 text"); - assertThat(cache.guessEventTimeMinutes()).isEqualTo(String.valueOf(14 * 60 + 20)); + assertThat(cache.guessEventTimeMinutes()).isEqualTo(14 * 60 + 20); } private static void assertTime(final String description, final int hours, final int minutes) { @@ -310,14 +310,14 @@ public class GeocacheTest extends CGeoTestCase { cache.setDescription(description); cache.setType(CacheType.EVENT); final int minutesAfterMidnight = hours * 60 + minutes; - assertThat(cache.guessEventTimeMinutes()).isEqualTo(String.valueOf(minutesAfterMidnight)); + assertThat(cache.guessEventTimeMinutes()).isEqualTo(minutesAfterMidnight); } private static void assertNoTime(final String description) { final Geocache cache = new Geocache(); cache.setDescription(description); cache.setType(CacheType.EVENT); - assertThat(cache.guessEventTimeMinutes()).isNull(); + assertThat(cache.guessEventTimeMinutes()).isEqualTo(-1); } public static void testGetPossibleLogTypes() throws Exception { |