diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-21 17:36:46 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-21 17:48:57 +0200 |
| commit | 1d1bcd7661e11ef079d8b23f9c531397e835ba3b (patch) | |
| tree | 56613355a920e1909e9b55df59c4daaa6fadfb67 /tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java | |
| parent | a8d6189ae5b172388605ab4ce30bcd1fad05eff7 (diff) | |
| download | cgeo-1d1bcd7661e11ef079d8b23f9c531397e835ba3b.zip cgeo-1d1bcd7661e11ef079d8b23f9c531397e835ba3b.tar.gz cgeo-1d1bcd7661e11ef079d8b23f9c531397e835ba3b.tar.bz2 | |
Make sure a cgeoapplication is created before testing
Some tests are using cgeoapplication without having one already setup,
and may be subject to race conditions when accessing the singleton or
the Settings.
Diffstat (limited to 'tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java b/tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java index 0532495..c5fce00 100644 --- a/tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java +++ b/tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java @@ -1,12 +1,11 @@ package cgeo.geocaching.geopoint; +import cgeo.CGeoTestCase; import cgeo.geocaching.Settings; -import android.test.AndroidTestCase; - import java.util.regex.Pattern; -public class HumanDistanceTest extends AndroidTestCase { +public class HumanDistanceTest extends CGeoTestCase { private static void assertMatch(final String ok, final float distance) { final String humanDistance = HumanDistance.getHumanDistance(distance); |
