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/cgDataTest.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/cgDataTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgDataTest.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/src/cgeo/geocaching/cgDataTest.java b/tests/src/cgeo/geocaching/cgDataTest.java index 15e3170..d6bb389 100644 --- a/tests/src/cgeo/geocaching/cgDataTest.java +++ b/tests/src/cgeo/geocaching/cgDataTest.java @@ -1,28 +1,15 @@ package cgeo.geocaching; +import cgeo.CGeoTestCase; import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.enumerations.LoadFlags; import cgeo.geocaching.geopoint.Geopoint; import cgeo.geocaching.geopoint.Viewport; -import android.test.ApplicationTestCase; - import java.util.HashSet; import java.util.Set; -public class cgDataTest extends ApplicationTestCase<cgeoapplication> { - - public cgDataTest() { - super(cgeoapplication.class); - } - - @Override - protected void setUp() throws Exception { - super.setUp(); - - // init environment - createApplication(); - } +public class cgDataTest extends CGeoTestCase { public static void testStoredLists() { |
