diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-28 18:44:52 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-29 09:35:48 +0200 |
| commit | 58a181f32e6ef95cff22416e61bc7a41c14574e9 (patch) | |
| tree | 476be9b825fa3f66164a9deb4701dc4076016dc5 | |
| parent | 04d1e6359e9cbdda20572d12df65af0099deef37 (diff) | |
| download | cgeo-58a181f32e6ef95cff22416e61bc7a41c14574e9.zip cgeo-58a181f32e6ef95cff22416e61bc7a41c14574e9.tar.gz cgeo-58a181f32e6ef95cff22416e61bc7a41c14574e9.tar.bz2 | |
Prevent static warnings on test methods
6 files changed, 14 insertions, 4 deletions
diff --git a/tests/src/cgeo/geocaching/test/CryptUtilsTest.java b/tests/src/cgeo/geocaching/test/CryptUtilsTest.java index 8a59738..7966943 100644 --- a/tests/src/cgeo/geocaching/test/CryptUtilsTest.java +++ b/tests/src/cgeo/geocaching/test/CryptUtilsTest.java @@ -4,6 +4,7 @@ import cgeo.geocaching.utils.CryptUtils; import junit.framework.TestCase; +@SuppressWarnings("static-method") public class CryptUtilsTest extends TestCase { public void testROT13() { assertEquals("", CryptUtils.rot13("")); diff --git a/tests/src/cgeo/geocaching/test/DistanceParserTest.java b/tests/src/cgeo/geocaching/test/DistanceParserTest.java index 836cca0..709064f 100644 --- a/tests/src/cgeo/geocaching/test/DistanceParserTest.java +++ b/tests/src/cgeo/geocaching/test/DistanceParserTest.java @@ -1,10 +1,13 @@ package cgeo.geocaching.test; -import junit.framework.Assert; -import android.test.AndroidTestCase; import cgeo.geocaching.cgSettings; import cgeo.geocaching.geopoint.DistanceParser; +import android.test.AndroidTestCase; + +import junit.framework.Assert; + +@SuppressWarnings("static-method") public class DistanceParserTest extends AndroidTestCase { static private final double MM = 1e-6; // 1mm, in kilometers diff --git a/tests/src/cgeo/geocaching/test/GeoPointParserTest.java b/tests/src/cgeo/geocaching/test/GeoPointParserTest.java index 86387f2..e6eb0e8 100644 --- a/tests/src/cgeo/geocaching/test/GeoPointParserTest.java +++ b/tests/src/cgeo/geocaching/test/GeoPointParserTest.java @@ -7,6 +7,7 @@ import android.test.AndroidTestCase; import junit.framework.Assert; +@SuppressWarnings("static-method") public class GeoPointParserTest extends AndroidTestCase { private static final double refLongitude = 8.0 + 38.564 / 60.0; diff --git a/tests/src/cgeo/geocaching/test/GeopointTest.java b/tests/src/cgeo/geocaching/test/GeopointTest.java index 455cff2..ad42d73 100644 --- a/tests/src/cgeo/geocaching/test/GeopointTest.java +++ b/tests/src/cgeo/geocaching/test/GeopointTest.java @@ -7,6 +7,7 @@ import android.test.AndroidTestCase; import junit.framework.Assert; +@SuppressWarnings("static-method") public class GeopointTest extends AndroidTestCase { public void testCreation() { diff --git a/tests/src/cgeo/geocaching/test/cgBaseTest.java b/tests/src/cgeo/geocaching/test/cgBaseTest.java index d3b893c..0f6be36 100644 --- a/tests/src/cgeo/geocaching/test/cgBaseTest.java +++ b/tests/src/cgeo/geocaching/test/cgBaseTest.java @@ -6,6 +6,7 @@ import android.test.AndroidTestCase; import junit.framework.Assert; +@SuppressWarnings("static-method") public class cgBaseTest extends AndroidTestCase { public void testReplaceWhitespaces() { diff --git a/tests/src/cgeo/geocaching/test/cgWaypointTest.java b/tests/src/cgeo/geocaching/test/cgWaypointTest.java index 387e456..601308c 100644 --- a/tests/src/cgeo/geocaching/test/cgWaypointTest.java +++ b/tests/src/cgeo/geocaching/test/cgWaypointTest.java @@ -1,11 +1,14 @@ package cgeo.geocaching.test; -import junit.framework.Assert; -import android.test.AndroidTestCase; import cgeo.geocaching.cgWaypoint; +import android.test.AndroidTestCase; + +import junit.framework.Assert; + public class cgWaypointTest extends AndroidTestCase { + @SuppressWarnings("static-method") public void testOrder() { final cgWaypoint wp1 = new cgWaypoint(); final cgWaypoint wp2 = new cgWaypoint(); |
