From 1e1ecc4c9514fbb2eb6fe273968ec9b57aa8f614 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Wed, 11 Jun 2014 20:17:43 +0200 Subject: refactoring: more assertj instead of junit assert --- tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java') diff --git a/tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java b/tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java index 4b25247..4392705 100644 --- a/tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java +++ b/tests/src/cgeo/geocaching/geopoint/GeoPointFormatterTest.java @@ -12,7 +12,7 @@ public class GeoPointFormatterTest extends AndroidTestCase { // From issue #2624: coordinate is wrong near to a confluence point final Geopoint point = new Geopoint(49.9999999999999, 5.0); final String format = GeopointFormatter.format(GeopointFormatter.Format.LAT_LON_DECDEGREE_COMMA, point); - assertEquals("50.000000,5.000000", format); + assertThat(format).isEqualTo("50.000000,5.000000"); final String formatMinute = GeopointFormatter.format(GeopointFormatter.Format.LAT_LON_DECMINUTE_RAW, point); assertThat(formatMinute).isEqualTo("N 50° 00.000 E 005° 00.000"); final String formatSecond = GeopointFormatter.format(GeopointFormatter.Format.LAT_LON_DECSECOND, point).replaceAll(",", "."); -- cgit v1.1