diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-07-06 20:16:32 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-07-06 20:16:32 +0200 |
| commit | 51dbf89df418a7da03439ca6b94ac0d86c3c6fa4 (patch) | |
| tree | 079df9c96f42c49bdd0c7d3df608c534a117a3b0 /tests | |
| parent | d500f3f0637b60da4f50c32a64de3eaa0ffd3f79 (diff) | |
| download | cgeo-51dbf89df418a7da03439ca6b94ac0d86c3c6fa4.zip cgeo-51dbf89df418a7da03439ca6b94ac0d86c3c6fa4.tar.gz cgeo-51dbf89df418a7da03439ca6b94ac0d86c3c6fa4.tar.bz2 | |
refactoring: try to stabilize tests
Diffstat (limited to 'tests')
| -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()); } } |
