aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-12 13:20:12 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-12 14:52:25 +0200
commit018e7db82858c3ab0fdc7dc5aba70eddbe1fa3fe (patch)
tree57e7eb31856c8a05d2f33ccbc37746efa74ed319 /tests/src
parent65caf4985175662cb1c11314a860506b648d342b (diff)
downloadcgeo-018e7db82858c3ab0fdc7dc5aba70eddbe1fa3fe.zip
cgeo-018e7db82858c3ab0fdc7dc5aba70eddbe1fa3fe.tar.gz
cgeo-018e7db82858c3ab0fdc7dc5aba70eddbe1fa3fe.tar.bz2
Refactoring: remove int based Geopoint and Viewport constructors
Those were source of errors, and have no legitimate reason to be used in our current code base as this changeset shows.
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/cgeo/geocaching/geopoint/GeopointTest.java6
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java2
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC2CJPF.java2
3 files changed, 2 insertions, 8 deletions
diff --git a/tests/src/cgeo/geocaching/geopoint/GeopointTest.java b/tests/src/cgeo/geocaching/geopoint/GeopointTest.java
index ba88992..7ce39b7 100644
--- a/tests/src/cgeo/geocaching/geopoint/GeopointTest.java
+++ b/tests/src/cgeo/geocaching/geopoint/GeopointTest.java
@@ -41,12 +41,6 @@ public class GeopointTest extends AndroidTestCase {
Assert.assertFalse(gp1.equals(gp2));
}
- public static void testCreateE6() {
- final Geopoint gp1 = new Geopoint(48.2, 2.34);
- final Geopoint gp2 = new Geopoint(48200000, 2340000);
- Assert.assertTrue(gp1.isEqualTo(gp2, 1e-6));
- }
-
public static void testGetE6() {
final Geopoint gp = new Geopoint(41.2, -3.4);
Assert.assertEquals(41200000.0, gp.getLatitudeE6(), 1e-6);
diff --git a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
index bf4d0cf..d19e504 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
@@ -17,7 +17,7 @@ import java.util.Map;
public class GC1ZXX2 extends MockedCache {
public GC1ZXX2() {
- super(new Geopoint(52373217, 9710800));
+ super(new Geopoint(52.373217, 9.710800));
}
@Override
diff --git a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
index b97d2bc..59f232b 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
@@ -18,7 +18,7 @@ import java.util.Map;
public class GC2CJPF extends MockedCache {
public GC2CJPF() {
- super(new Geopoint(52425067, 9664200));
+ super(new Geopoint(52.425067, 9.664200));
}
@Override