aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java
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/utils/LeastRecentlyUsedSetTest.java
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/utils/LeastRecentlyUsedSetTest.java')
-rw-r--r--tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java b/tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java
index 4b4e5f7..7e06b83 100644
--- a/tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java
+++ b/tests/src/cgeo/geocaching/utils/LeastRecentlyUsedSetTest.java
@@ -1,6 +1,6 @@
package cgeo.geocaching.utils;
-import cgeo.geocaching.cgCache;
+import cgeo.geocaching.Geocache;
import java.util.Set;
@@ -26,12 +26,12 @@ public class LeastRecentlyUsedSetTest extends AbstractLRUTest {
}
public static void testRemoveEldestEntry() {
- final LeastRecentlyUsedSet<cgCache> caches = new LeastRecentlyUsedSet<cgCache>(10);
- final cgCache first = new cgCache();
+ final LeastRecentlyUsedSet<Geocache> caches = new LeastRecentlyUsedSet<Geocache>(10);
+ final Geocache first = new Geocache();
first.setGeocode("1");
assertTrue(caches.add(first));
- final cgCache second = new cgCache();
+ final Geocache second = new Geocache();
second.setGeocode("2");
assertTrue(caches.add(second));
@@ -44,7 +44,7 @@ public class LeastRecentlyUsedSetTest extends AbstractLRUTest {
assertEquals(2, caches.size());
for (int i = 3; i <= 10; i++) {
- final cgCache cache = new cgCache();
+ final Geocache cache = new Geocache();
cache.setGeocode(Integer.toString(i));
assertTrue(caches.add(cache));
}
@@ -53,7 +53,7 @@ public class LeastRecentlyUsedSetTest extends AbstractLRUTest {
assertTrue(caches.contains(first));
assertTrue(caches.contains(second));
- final cgCache c11 = new cgCache();
+ final Geocache c11 = new Geocache();
c11.setGeocode("11");
assertTrue(caches.add(c11));