aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/sorting
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-02-03 13:53:48 +0100
committerSamuel Tardieu <sam@rfc1149.net>2013-02-03 13:53:48 +0100
commitb53b6303ae321276d8c25d6a492372ac615580a2 (patch)
treee756bbd1ac81d7117bfadde5c53bb8d5b72d9a85 /tests/src/cgeo/geocaching/sorting
parent56106aba18200cd87bc4a51858bdf1125fe913af (diff)
downloadcgeo-b53b6303ae321276d8c25d6a492372ac615580a2.zip
cgeo-b53b6303ae321276d8c25d6a492372ac615580a2.tar.gz
cgeo-b53b6303ae321276d8c25d6a492372ac615580a2.tar.bz2
Refactoring: rename cgCache into Geocache
Diffstat (limited to 'tests/src/cgeo/geocaching/sorting')
-rw-r--r--tests/src/cgeo/geocaching/sorting/DistanceComparatorTest.java6
-rw-r--r--tests/src/cgeo/geocaching/sorting/NameComparatorTest.java8
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/src/cgeo/geocaching/sorting/DistanceComparatorTest.java b/tests/src/cgeo/geocaching/sorting/DistanceComparatorTest.java
index 91896a5..2db3f59 100644
--- a/tests/src/cgeo/geocaching/sorting/DistanceComparatorTest.java
+++ b/tests/src/cgeo/geocaching/sorting/DistanceComparatorTest.java
@@ -1,6 +1,6 @@
package cgeo.geocaching.sorting;
-import cgeo.geocaching.cgCache;
+import cgeo.geocaching.Geocache;
import cgeo.geocaching.geopoint.Geopoint;
import android.test.AndroidTestCase;
@@ -12,9 +12,9 @@ import java.util.List;
public class DistanceComparatorTest extends AndroidTestCase {
public static void testCompareCaches() {
- final List<cgCache> caches = new ArrayList<cgCache>();
+ final List<Geocache> caches = new ArrayList<Geocache>();
for (int i = 0; i < 37; i++) {
- cgCache cache = new cgCache();
+ Geocache cache = new Geocache();
if (i % 3 == 0) {
cache.setCoords(new Geopoint(i, i));
}
diff --git a/tests/src/cgeo/geocaching/sorting/NameComparatorTest.java b/tests/src/cgeo/geocaching/sorting/NameComparatorTest.java
index 98c77fd..18db4b7 100644
--- a/tests/src/cgeo/geocaching/sorting/NameComparatorTest.java
+++ b/tests/src/cgeo/geocaching/sorting/NameComparatorTest.java
@@ -1,12 +1,12 @@
package cgeo.geocaching.sorting;
-import cgeo.geocaching.cgCache;
+import cgeo.geocaching.Geocache;
import android.test.AndroidTestCase;
public class NameComparatorTest extends AndroidTestCase {
- private static class NamedCache extends cgCache {
+ private static class NamedCache extends Geocache {
public NamedCache(final String name) {
this.setName(name);
@@ -31,11 +31,11 @@ public class NameComparatorTest extends AndroidTestCase {
assertEquals("abc000123def456", (new NamedCache("abc123def456")).getNameForSorting());
}
- private void assertSorted(final cgCache cache1, final cgCache cache2) {
+ private void assertSorted(final Geocache cache1, final Geocache cache2) {
assertTrue(comp.compare(cache1, cache2) < 0);
}
- private void assertNotSorted(final cgCache cache1, final cgCache cache2) {
+ private void assertNotSorted(final Geocache cache1, final Geocache cache2) {
assertTrue(comp.compare(cache1, cache2) > 0);
}
}