diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/GeocacheTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/GeocacheTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/GeocacheTest.java b/tests/src/cgeo/geocaching/GeocacheTest.java index affc793..5431835 100644 --- a/tests/src/cgeo/geocaching/GeocacheTest.java +++ b/tests/src/cgeo/geocaching/GeocacheTest.java @@ -3,6 +3,7 @@ package cgeo.geocaching; import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.geopoint.Geopoint; +import android.os.Handler; import android.test.AndroidTestCase; import java.util.ArrayList; @@ -61,7 +62,7 @@ public class GeocacheTest extends AndroidTestCase { private static void assertWaypointsParsed(String note, int expectedWaypoints) { Geocache cache = new Geocache(); - cache.setGeocode("Test"); + cache.setGeocode("Test" + System.nanoTime()); cache.setWaypoints(new ArrayList<Waypoint>(), false); for (int i = 0; i < 2; i++) { cache.setPersonalNote(note); @@ -75,5 +76,6 @@ public class GeocacheTest extends AndroidTestCase { assertEquals(cgeoapplication.getInstance().getString(R.string.cache_personal_note) + " 1", waypoint.getName()); cache.store(StoredList.TEMPORARY_LIST_ID, null); } + cache.drop(new Handler()); } } |
