From 1d1bcd7661e11ef079d8b23f9c531397e835ba3b Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 21 Apr 2012 17:36:46 +0200 Subject: 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. --- tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/src/cgeo/geocaching/geopoint/HumanDistanceTest.java') 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); -- cgit v1.1