aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/DestinationTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/DestinationTest.java')
-rw-r--r--tests/src/cgeo/geocaching/DestinationTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/DestinationTest.java b/tests/src/cgeo/geocaching/DestinationTest.java
index 26caacd..00249c4 100644
--- a/tests/src/cgeo/geocaching/DestinationTest.java
+++ b/tests/src/cgeo/geocaching/DestinationTest.java
@@ -1,11 +1,11 @@
package cgeo.geocaching;
+import static org.assertj.core.api.Assertions.assertThat;
+
import cgeo.geocaching.geopoint.Geopoint;
import android.test.AndroidTestCase;
-import junit.framework.Assert;
-
public class DestinationTest extends AndroidTestCase {
private Destination dest = null;
@@ -17,9 +17,9 @@ public class DestinationTest extends AndroidTestCase {
}
public void testSomething() {
- Assert.assertEquals(1, dest.getId());
- Assert.assertEquals(10000, dest.getDate());
- Assert.assertEquals(52.5, dest.getCoords().getLatitude());
- Assert.assertEquals(9.33, dest.getCoords().getLongitude());
+ assertThat(dest.getId()).isEqualTo(1);
+ assertThat(dest.getDate()).isEqualTo(10000);
+ assertThat(dest.getCoords().getLatitude()).isEqualTo(52.5);
+ assertThat(dest.getCoords().getLongitude()).isEqualTo(9.33);
}
} \ No newline at end of file