aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-10-24 23:13:37 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-10-24 23:15:28 +0200
commitb6d19eeea75e255c40756b59e1c977988082589f (patch)
treedc63be180c54217850319ebe233ab938a10c8582 /tests
parente5efa831a88cab7675b65a3fb596990d88975ee2 (diff)
downloadcgeo-b6d19eeea75e255c40756b59e1c977988082589f.zip
cgeo-b6d19eeea75e255c40756b59e1c977988082589f.tar.gz
cgeo-b6d19eeea75e255c40756b59e1c977988082589f.tar.bz2
Do not use an extra indirection for storing search results
What is called search result (or cgSearch) in c:geo is a collection of caches that can or cannot come from a real search. Remove the indirection and the ever-growing hash map that was previously used. This will save memory, especially when using live maps. See discussion in issue #707.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/cgeoApplicationTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
index 20743f1..9c63261 100644
--- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java
+++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
@@ -9,7 +9,6 @@ import android.test.suitebuilder.annotation.SmallTest;
import java.util.Date;
import java.util.HashMap;
-import java.util.UUID;
import junit.framework.Assert;
@@ -54,8 +53,8 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> {
*/
@MediumTest
public void testSearchByGeocode() {
- final UUID id = base.searchByGeocode("GC1RMM2", null, 0, true, null);
- Assert.assertNotNull(id);
+ final cgSearch search = base.searchByGeocode("GC1RMM2", null, 0, true, null);
+ Assert.assertNotNull(search);
}
/**