aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/utils
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-04-09 10:36:23 +0200
committerBananeweizen <Bananeweizen@gmx.de>2012-04-09 10:36:23 +0200
commitacf2dfd195f0acdf89021fc33b855fb5991e9060 (patch)
tree2ccf55c233177b96233ca292797bbe07e5049d70 /tests/src/cgeo/geocaching/utils
parent55d34f723750133429aa3b44fed03598de6020dc (diff)
downloadcgeo-acf2dfd195f0acdf89021fc33b855fb5991e9060.zip
cgeo-acf2dfd195f0acdf89021fc33b855fb5991e9060.tar.gz
cgeo-acf2dfd195f0acdf89021fc33b855fb5991e9060.tar.bz2
missing file in merge request #1362
Diffstat (limited to 'tests/src/cgeo/geocaching/utils')
-rw-r--r--tests/src/cgeo/geocaching/utils/AbstractLRUTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java b/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java
new file mode 100644
index 0000000..83a796b
--- /dev/null
+++ b/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java
@@ -0,0 +1,20 @@
+package cgeo.geocaching.utils;
+
+import org.apache.commons.lang3.StringUtils;
+
+import android.test.AndroidTestCase;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+public abstract class AbstractLRUTest extends AndroidTestCase {
+
+ protected static String colToStr(Collection<?> col) {
+ final ArrayList<String> list = new ArrayList<String>(col.size());
+ for (Object o : col) {
+ list.add(o.toString());
+ }
+ return StringUtils.join(list, ", ");
+ }
+
+} \ No newline at end of file